C# Class Cats.Services.Hub.PeriodService

Inheritance: IPeriodService
Show file Open project: edgecomputing/cats

Public Methods

Method Description
AddPeriod ( Period entity ) : bool
DeleteById ( int id ) : bool
DeletePeriod ( Period entity ) : bool
Dispose ( ) : void
EditPeriod ( Period entity ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : Period
GetAllPeriod ( ) : List
GetMonths ( int year ) : List
GetPeriod ( int year, int month ) : Period
GetYears ( ) : List
PeriodService ( IUnitOfWork unitOfWork ) : System

Method Details

AddPeriod() public method

public AddPeriod ( Period entity ) : bool
entity Cats.Models.Hubs.Period
return bool

DeleteById() public method

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

DeletePeriod() public method

public DeletePeriod ( Period entity ) : bool
entity Cats.Models.Hubs.Period
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditPeriod() public method

public EditPeriod ( Period entity ) : bool
entity Cats.Models.Hubs.Period
return bool

FindBy() public method

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

FindById() public method

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

GetAllPeriod() public method

public GetAllPeriod ( ) : List
return List

GetMonths() public method

public GetMonths ( int year ) : List
year int
return List

GetPeriod() public method

public GetPeriod ( int year, int month ) : Period
year int
month int
return Cats.Models.Hubs.Period

GetYears() public method

public GetYears ( ) : List
return List

PeriodService() public method

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