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

Tasks collection
Inheritance: ApiController
Mostrar archivo Open project: colinbowern/Presentations

Public Methods

Method 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 method

Deletes the specified id.
public Delete ( int id ) : void
id int The id.
return void

Get() public method

Retrieves all the tasks
public Get ( ) : IEnumerable
return IEnumerable

Get() public method

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

Post() public method

Posts the specified model.
public Post ( TaskModel model ) : void
model TasksApp.Models.TaskModel The model.
return void

Put() public method

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