public virtual ApiTransactionResponseModel MapBOToModel( BOTransaction boTransaction) { var model = new ApiTransactionResponseModel(); model.SetProperties(boTransaction.Id, boTransaction.Amount, boTransaction.GatewayConfirmationNumber, boTransaction.TransactionStatusId); return(model); }
public virtual BOTransaction MapEFToBO( Transaction ef) { var bo = new BOTransaction(); bo.SetProperties( ef.Id, ef.Amount, ef.GatewayConfirmationNumber, ef.TransactionStatusId); return(bo); }
public virtual Transaction MapBOToEF( BOTransaction bo) { Transaction efTransaction = new Transaction(); efTransaction.SetProperties( bo.Amount, bo.GatewayConfirmationNumber, bo.Id, bo.TransactionStatusId); return(efTransaction); }
public virtual BOTransaction MapModelToBO( int id, ApiTransactionRequestModel model ) { BOTransaction boTransaction = new BOTransaction(); boTransaction.SetProperties( id, model.Amount, model.GatewayConfirmationNumber, model.TransactionStatusId); return(boTransaction); }