C# Класс ApiDogFood.API.Controllers.ContactsController

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

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

Метод Описание
Delete ( int id ) : void
Get ( int id ) : Contact
Get ( ) : IEnumerable
Post ( AddContactCommand command ) : HttpResponseMessage
Put ( int id, UpdateContactCommand command ) : void

Приватные методы

Метод Описание
GetContact ( int id ) : Contact

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

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

public Delete ( int id ) : void
id int
Результат void

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

public Get ( int id ) : Contact
id int
Результат Contact

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

public Get ( ) : IEnumerable
Результат IEnumerable

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

public Post ( AddContactCommand command ) : HttpResponseMessage
command AddContactCommand
Результат System.Net.Http.HttpResponseMessage

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

public Put ( int id, UpdateContactCommand command ) : void
id int
command UpdateContactCommand
Результат void