C# Class WebApiDoodle.Net.Http.Client.Sample45.Models.CarsContext

ファイルを表示 Open project: tugberkugurlu/WebAPIDoodle

Public Methods

Method Description
Add ( Car car ) : Car
Get ( bool>.Func predicate ) : IEnumerable
GetAll ( int page, int take ) : PaginatedList
GetSingle ( bool>.Func predicate ) : Car
GetSingle ( int id ) : Car>.Tuple
TryRemove ( int id ) : bool
TryUpdate ( Car car ) : bool

Method Details

Add() public method

public Add ( Car car ) : Car
car Car
return Car

Get() public method

public Get ( bool>.Func predicate ) : IEnumerable
predicate bool>.Func
return IEnumerable

GetAll() public method

public GetAll ( int page, int take ) : PaginatedList
page int
take int
return PaginatedList

GetSingle() public method

public GetSingle ( bool>.Func predicate ) : Car
predicate bool>.Func
return Car

GetSingle() public method

public GetSingle ( int id ) : Car>.Tuple
id int
return Car>.Tuple

TryRemove() public method

public TryRemove ( int id ) : bool
id int
return bool

TryUpdate() public method

public TryUpdate ( Car car ) : bool
car Car
return bool