C# Class CarManager.Data.CarRepository

Inheritance: ICarRepository
显示文件 Open project: WebApiContrib/WebApiContrib.Samples

Public Methods

Method Description
Add ( CarManager.Data.Car car ) : void
CarRepository ( ) : System
Delete ( int id ) : void
Get ( int id ) : CarManager.Data.Car
Get ( ) : IEnumerable
Update ( CarManager.Data.Car car ) : void

Method Details

Add() public method

public Add ( CarManager.Data.Car car ) : void
car CarManager.Data.Car
return void

CarRepository() public method

public CarRepository ( ) : System
return System

Delete() public method

public Delete ( int id ) : void
id int
return void

Get() public method

public Get ( int id ) : CarManager.Data.Car
id int
return CarManager.Data.Car

Get() public method

public Get ( ) : IEnumerable
return IEnumerable

Update() public method

public Update ( CarManager.Data.Car car ) : void
car CarManager.Data.Car
return void