C# Class TasksApp.Controllers.Api.Version2.TasksController

Tasks collection
Inheritance: ApiController
Afficher le fichier Open project: colinbowern/Presentations

Méthodes publiques

Méthode Description
Delete ( int id ) : void

Deletes the specified id.

Get ( ) : IEnumerable

Retrieves all the tasks

Get ( int id ) : Task

Gets task with the specified id.

Post ( TaskModel model ) : void

Posts the specified model.

Put ( int id, TaskModel model ) : void

Puts the specified id.

Method Details

Delete() public méthode

Deletes the specified id.
public Delete ( int id ) : void
id int The id.
Résultat void

Get() public méthode

Retrieves all the tasks
public Get ( ) : IEnumerable
Résultat IEnumerable

Get() public méthode

Gets task with the specified id.
public Get ( int id ) : Task
id int The id.
Résultat TasksApp.Models.Task

Post() public méthode

Posts the specified model.
public Post ( TaskModel model ) : void
model TasksApp.Models.TaskModel The model.
Résultat void

Put() public méthode

Puts the specified id.
public Put ( int id, TaskModel model ) : void
id int The id.
model TasksApp.Models.TaskModel The model.
Résultat void