C# Class Cats.Services.Hub.AccountService

Inheritance: IAccountService
Show file Open project: edgecomputing/cats

Public Methods

Method Description
AccountService ( IUnitOfWork unitOfWork ) : System
AddAccount ( Account entity ) : bool
DeleteAccount ( Account account ) : bool
DeleteById ( int id ) : bool
Dispose ( ) : void
EditAccount ( Account entity ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : Account
GetAccountId ( string entityType, int entityId ) : int
GetAccountIdWithCreate ( string entityType, int entityId ) : int
GetAllAccount ( ) : List

Method Details

AccountService() public method

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

AddAccount() public method

public AddAccount ( Account entity ) : bool
entity Cats.Models.Hubs.Account
return bool

DeleteAccount() public method

public DeleteAccount ( Account account ) : bool
account Cats.Models.Hubs.Account
return bool

DeleteById() public method

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

Dispose() public method

public Dispose ( ) : void
return void

EditAccount() public method

public EditAccount ( Account entity ) : bool
entity Cats.Models.Hubs.Account
return bool

FindBy() public method

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

FindById() public method

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

GetAccountId() public method

public GetAccountId ( string entityType, int entityId ) : int
entityType string
entityId int
return int

GetAccountIdWithCreate() public method

public GetAccountIdWithCreate ( string entityType, int entityId ) : int
entityType string
entityId int
return int

GetAllAccount() public method

public GetAllAccount ( ) : List
return List