C# Class ApiDogFood.API.Controllers.ContactsController

Inheritance: ApiController
Afficher le fichier Open project: benfoster/ApiDogFood

Méthodes publiques

Méthode Description
Delete ( int id ) : void
Get ( int id ) : Contact
Get ( ) : IEnumerable
Post ( AddContactCommand command ) : HttpResponseMessage
Put ( int id, UpdateContactCommand command ) : void

Private Methods

Méthode Description
GetContact ( int id ) : Contact

Method Details

Delete() public méthode

public Delete ( int id ) : void
id int
Résultat void

Get() public méthode

public Get ( int id ) : Contact
id int
Résultat Contact

Get() public méthode

public Get ( ) : IEnumerable
Résultat IEnumerable

Post() public méthode

public Post ( AddContactCommand command ) : HttpResponseMessage
command AddContactCommand
Résultat System.Net.Http.HttpResponseMessage

Put() public méthode

public Put ( int id, UpdateContactCommand command ) : void
id int
command UpdateContactCommand
Résultat void