C# Class Cats.Services.EarlyWarning.UnitService

Inheritance: IUnitService
Show file Open project: edgecomputing/cats

Public Methods

Method Description
AddUnit ( Unit unit ) : bool
DeleteById ( int id ) : bool
DeleteUnit ( Unit unit ) : bool
Dispose ( ) : void
EditUnit ( Unit unit ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : Unit
GetAllUnit ( ) : List
UnitService ( IUnitOfWork unitOfWork ) : System

Method Details

AddUnit() public method

public AddUnit ( Unit unit ) : bool
unit Cats.Models.Unit
return bool

DeleteById() public method

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

DeleteUnit() public method

public DeleteUnit ( Unit unit ) : bool
unit Cats.Models.Unit
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditUnit() public method

public EditUnit ( Unit unit ) : bool
unit Cats.Models.Unit
return bool

FindBy() public method

public FindBy ( bool>.Expression predicate ) : List
predicate bool>.Expression
return List

FindById() public method

public FindById ( int id ) : Unit
id int
return Cats.Models.Unit

GetAllUnit() public method

public GetAllUnit ( ) : List
return List

UnitService() public method

public UnitService ( IUnitOfWork unitOfWork ) : System
unitOfWork IUnitOfWork
return System