public TransactionType ConvertToBusinessLogicEntity(DalTransactionType dataEntity) { var result = new TransactionType(dataEntity.Id, dataEntity.Text); result.IsDirty = false; return(result); }
public ApiTransactionType ConvertToApiEntity(DalTransactionType dataEntity) { var result = new ApiTransactionType(dataEntity.Id, dataEntity.Text); result.IsDirty = dataEntity.IsDirty; result.IsMarkForDeletion = dataEntity.IsMarkForDeletion; return(result); }
public DalTransactionType ConvertToDALEntity(TransactionType businessEntity) { var result = new DalTransactionType(businessEntity.Id, businessEntity.Text, businessEntity.Id); return(result); }