C# Class RegExValidationSample.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 RegExValidationSample.Models.Car

PostCar() public method

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

PutCar() public method

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