C# Class ValidationIntro.APIs.CarsController

Inheritance: ApiController
ファイルを表示 Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

Method Description
DeleteCar ( int id ) : HttpResponseMessage
Get ( ) : IEnumerable
GetCar ( int id ) : Car
PostCar ( Car car ) : HttpResponseMessage
PutCar ( int id, Car car ) : Car

Method Details

DeleteCar() public method

public DeleteCar ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

Get() public method

public Get ( ) : IEnumerable
return IEnumerable

GetCar() public method

public GetCar ( int id ) : Car
id int
return ValidationIntro.Models.Car

PostCar() public method

public PostCar ( Car car ) : HttpResponseMessage
car ValidationIntro.Models.Car
return System.Net.Http.HttpResponseMessage

PutCar() public method

public PutCar ( int id, Car car ) : Car
id int
car ValidationIntro.Models.Car
return ValidationIntro.Models.Car