C# Class SampleAPIApplication.APIs.CarsController

Inheritance: ApiController
显示文件 Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

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

Method Details

Delete() public method

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

DeleteCar() public method

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

Get() public method

public Get ( int id ) : Car
id int
return SampleAPIApplication.Models.Car

Get() public method

public Get ( ) : IEnumerable
return IEnumerable

GetCar() public method

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

Post() public method

public Post ( Car car ) : HttpResponseMessage
car SampleAPIApplication.Models.Car
return System.Net.Http.HttpResponseMessage

PostCar() public method

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

Put() public method

public Put ( int id, Car car ) : Car
id int
car SampleAPIApplication.Models.Car
return SampleAPIApplication.Models.Car

PutCar() public method

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