public virtual ApiTransactionStatusResponseModel MapBOToModel( BOTransactionStatus boTransactionStatus) { var model = new ApiTransactionStatusResponseModel(); model.SetProperties(boTransactionStatus.Id, boTransactionStatus.Name); return(model); }
public virtual BOTransactionStatus MapEFToBO( TransactionStatus ef) { var bo = new BOTransactionStatus(); bo.SetProperties( ef.Id, ef.Name); return(bo); }
public virtual TransactionStatus MapBOToEF( BOTransactionStatus bo) { TransactionStatus efTransactionStatus = new TransactionStatus(); efTransactionStatus.SetProperties( bo.Id, bo.Name); return(efTransactionStatus); }
public virtual BOTransactionStatus MapModelToBO( int id, ApiTransactionStatusRequestModel model ) { BOTransactionStatus boTransactionStatus = new BOTransactionStatus(); boTransactionStatus.SetProperties( id, model.Name); return(boTransactionStatus); }