C# Class Cats.Services.Hub.AdjustmentService

Inheritance: IAdjustmentService
Show file Open project: edgecomputing/cats

Public Methods

Method Description
AddAdjustment ( Adjustment adjustment ) : bool
AddNewLossAndAdjustment ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void
AdjustmentService ( IUnitOfWork unitOfWork, ITransactionService transactionService ) : System
DeleteAdjustment ( Adjustment adjustment ) : bool
DeleteById ( int id ) : bool
Dispose ( ) : void
EditAdjustment ( Adjustment adjustment ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : Adjustment
GetAllAdjustment ( ) : List
GetAllLossAndAdjustmentLog ( int hubId ) : List

Method Details

AddAdjustment() public method

public AddAdjustment ( Adjustment adjustment ) : bool
adjustment Cats.Models.Hubs.Adjustment
return bool

AddNewLossAndAdjustment() public method

public AddNewLossAndAdjustment ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void
viewModel Cats.Models.Hubs.ViewModels.LossesAndAdjustmentsViewModel
user Cats.Models.Hubs.UserProfile
return void

AdjustmentService() public method

public AdjustmentService ( IUnitOfWork unitOfWork, ITransactionService transactionService ) : System
unitOfWork IUnitOfWork
transactionService ITransactionService
return System

DeleteAdjustment() public method

public DeleteAdjustment ( Adjustment adjustment ) : bool
adjustment Cats.Models.Hubs.Adjustment
return bool

DeleteById() public method

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

Dispose() public method

public Dispose ( ) : void
return void

EditAdjustment() public method

public EditAdjustment ( Adjustment adjustment ) : bool
adjustment Cats.Models.Hubs.Adjustment
return bool

FindBy() public method

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

FindById() public method

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

GetAllAdjustment() public method

public GetAllAdjustment ( ) : List
return List

GetAllLossAndAdjustmentLog() public method

public GetAllLossAndAdjustmentLog ( int hubId ) : List
hubId int
return List