C# Class Cats.Services.EarlyWarning.CommodityService

Inheritance: ICommodityService
Show file Open project: edgecomputing/cats

Public Methods

Method Description
AddCommodity ( Commodity commodity ) : bool
CommodityService ( IUnitOfWork unitOfWork ) : System
DeleteById ( int id ) : bool
DeleteCommodity ( Commodity commodity ) : bool
Dispose ( ) : void
EditCommodity ( Commodity commodity ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : Commodity
Get ( bool>.System filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetAllCommodity ( ) : List
GetAllUnit ( ) : IEnumerable
GetCommoidtyId ( string commodityName ) : int
GetCommonCommodity ( ) : List

Method Details

AddCommodity() public method

public AddCommodity ( Commodity commodity ) : bool
commodity Cats.Models.Commodity
return bool

CommodityService() public method

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

DeleteById() public method

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

DeleteCommodity() public method

public DeleteCommodity ( Commodity commodity ) : bool
commodity Cats.Models.Commodity
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditCommodity() public method

public EditCommodity ( Commodity commodity ) : bool
commodity Cats.Models.Commodity
return bool

FindBy() public method

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

FindById() public method

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

Get() public method

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

GetAllCommodity() public method

public GetAllCommodity ( ) : List
return List

GetAllUnit() public method

public GetAllUnit ( ) : IEnumerable
return IEnumerable

GetCommoidtyId() public method

public GetCommoidtyId ( string commodityName ) : int
commodityName string
return int

GetCommonCommodity() public method

public GetCommonCommodity ( ) : List
return List