C# Класс TasksApp.Controllers.Api.Version2.TasksController

Tasks collection
Наследование: ApiController
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Delete() публичный Метод

Deletes the specified id.
public Delete ( int id ) : void
id int The id.
Результат void

Get() публичный Метод

Retrieves all the tasks
public Get ( ) : IEnumerable
Результат IEnumerable

Get() публичный Метод

Gets task with the specified id.
public Get ( int id ) : Task
id int The id.
Результат TasksApp.Models.Task

Post() публичный Метод

Posts the specified model.
public Post ( TaskModel model ) : void
model TasksApp.Models.TaskModel The model.
Результат void

Put() публичный Метод

Puts the specified id.
public Put ( int id, TaskModel model ) : void
id int The id.
model TasksApp.Models.TaskModel The model.
Результат void