C# Class ActionFilters.Models.CarsContext

Show file Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

Method Description
Add ( Car car ) : Car
Get ( bool>.Func predicate ) : IEnumerable
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

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