public CostControlBusinessEntity.CostPoint Update(CostControlBusinessEntity.CostPoint entity) { if (entity == null) { return(null); } try { CostControlEntity.CostPoint CostPoint = CostPointIMapper.Map <CostControlBusinessEntity.CostPoint, CostControlEntity.CostPoint>(entity); var result = CostPointIMapper.Map <CostControlEntity.CostPoint, CostControlBusinessEntity.CostPoint>(Repository.Update(CostPoint)); _unitOfWork.Commit(); return(result); } catch (Exception ex) { throw ex; } }
public override string ToString() => $"{SalePoint?.ToString()} - {CostPoint?.ToString()}";