C# Class JsonPatchSample.Controllers.CarsController

Inheritance: ApiController
ファイルを表示 Open project: tugberkugurlu/ASPNETWebAPISamples

Public Methods

Method Description
DeleteCar ( int id ) : HttpResponseMessage
Get ( ) : IEnumerable
GetCar ( int id ) : Car
Patch ( int id, JsonPatchDocument patchData ) : 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 JsonPatchSample.Models.Car

Patch() public method

public Patch ( int id, JsonPatchDocument patchData ) : Car
id int
patchData JsonPatchDocument
return JsonPatchSample.Models.Car

PostCar() public method

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

PutCar() public method

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