C# Class Cats.Services.EarlyWarning.HubService

Inheritance: IHubService
Show file Open project: edgecomputing/cats

Public Methods

Method Description
AddHub ( Hub hub ) : bool
DeleteById ( int id ) : bool
DeleteHub ( Hub hub ) : bool
Dispose ( ) : void
EditHub ( Hub hub ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : Hub
GetAllHub ( ) : List
GetHubId ( string hub ) : int
GetNearestWarehouse ( int woredaID ) : Hub
HubService ( IUnitOfWork unitOfWork ) : System

Method Details

AddHub() public method

public AddHub ( Hub hub ) : bool
hub Cats.Models.Hub
return bool

DeleteById() public method

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

DeleteHub() public method

public DeleteHub ( Hub hub ) : bool
hub Cats.Models.Hub
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditHub() public method

public EditHub ( Hub hub ) : bool
hub Cats.Models.Hub
return bool

FindBy() public method

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

FindById() public method

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

GetAllHub() public method

public GetAllHub ( ) : List
return List

GetHubId() public method

public GetHubId ( string hub ) : int
hub string
return int

GetNearestWarehouse() public method

public GetNearestWarehouse ( int woredaID ) : Hub
woredaID int
return Cats.Models.Hub

HubService() public method

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