Exemplo n.º 1
0
        public CostControlBusinessEntity.SalePoint Update(CostControlBusinessEntity.SalePoint entity)
        {
            if (entity == null)
            {
                return(null);
            }

            try
            {
                CostControlEntity.SalePoint SalePoint = SalePointIMapper.Map <CostControlBusinessEntity.SalePoint, CostControlEntity.SalePoint>(entity);

                var result = SalePointIMapper.Map <CostControlEntity.SalePoint, CostControlBusinessEntity.SalePoint>(Repository.Update(SalePoint));
                _unitOfWork.Commit();

                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
 public override string ToString() => $"{SalePoint?.ToString()} - {CostPoint?.ToString()}";