C# Class Cats.Services.Hub.FDPService

Inheritance: IFDPService
Show file Open project: edgecomputing/cats

Public Methods

Method Description
AddFDP ( FDP fdp ) : bool
DeleteById ( int id ) : bool
DeleteFDP ( FDP fdp ) : bool
Dispose ( ) : void
EditFDP ( FDP fdp ) : bool
FDPService ( IUnitOfWork unitOfWork ) : System
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : FDP
Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetAllFDP ( ) : List
GetAllFDPForReport ( ) : List
GetFDPsByRegion ( int regionId ) : List

Gets the FDPs by region.

GetFDPsByWoreda ( int woredaId ) : List

Gets the FDPs by woreda.

GetFDPsByZone ( int zoneId ) : List

Gets the FDPs by zone.

Method Details

AddFDP() public method

public AddFDP ( FDP fdp ) : bool
fdp Cats.Models.Hubs.FDP
return bool

DeleteById() public method

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

DeleteFDP() public method

public DeleteFDP ( FDP fdp ) : bool
fdp Cats.Models.Hubs.FDP
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditFDP() public method

public EditFDP ( FDP fdp ) : bool
fdp Cats.Models.Hubs.FDP
return bool

FDPService() public method

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

FindBy() public method

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

FindById() public method

public FindById ( int id ) : FDP
id int
return Cats.Models.Hubs.FDP

Get() public method

public Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
filter bool>.Expression
orderBy Func
includeProperties string
return IEnumerable

GetAllFDP() public method

public GetAllFDP ( ) : List
return List

GetAllFDPForReport() public method

public GetAllFDPForReport ( ) : List
return List

GetFDPsByRegion() public method

Gets the FDPs by region.
public GetFDPsByRegion ( int regionId ) : List
regionId int The region id.
return List

GetFDPsByWoreda() public method

Gets the FDPs by woreda.
public GetFDPsByWoreda ( int woredaId ) : List
woredaId int The woreda id.
return List

GetFDPsByZone() public method

Gets the FDPs by zone.
public GetFDPsByZone ( int zoneId ) : List
zoneId int The zone id.
return List