C# Class Cats.Services.EarlyWarning.RationService

Inheritance: IRationService
Afficher le fichier Open project: edgecomputing/cats

Méthodes publiques

Méthode Description
AddRation ( Ration ration ) : bool
DeleteById ( int id ) : bool
DeleteRation ( Ration ration ) : bool
Dispose ( ) : void
EditRation ( Ration ration ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : Ration
Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetAllRation ( ) : List
RationService ( IUnitOfWork unitOfWork ) : System
SetDefault ( int rationId ) : void
SetSettingValue ( string name, string value ) : void
UnsetDefault ( ) : void

Method Details

AddRation() public méthode

public AddRation ( Ration ration ) : bool
ration Cats.Models.Ration
Résultat bool

DeleteById() public méthode

public DeleteById ( int id ) : bool
id int
Résultat bool

DeleteRation() public méthode

public DeleteRation ( Ration ration ) : bool
ration Cats.Models.Ration
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EditRation() public méthode

public EditRation ( Ration ration ) : bool
ration Cats.Models.Ration
Résultat bool

FindBy() public méthode

public FindBy ( bool>.Expression predicate ) : List
predicate bool>.Expression
Résultat List

FindById() public méthode

public FindById ( int id ) : Ration
id int
Résultat Cats.Models.Ration

Get() public méthode

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

GetAllRation() public méthode

public GetAllRation ( ) : List
Résultat List

RationService() public méthode

public RationService ( IUnitOfWork unitOfWork ) : System
unitOfWork IUnitOfWork
Résultat System

SetDefault() public méthode

public SetDefault ( int rationId ) : void
rationId int
Résultat void

SetSettingValue() public méthode

public SetSettingValue ( string name, string value ) : void
name string
value string
Résultat void

UnsetDefault() public méthode

public UnsetDefault ( ) : void
Résultat void