Example #1
0
        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;
            }
        }
Example #2
0
 public override string ToString() => $"{SalePoint?.ToString()} - {CostPoint?.ToString()}";