public CostControlBusinessEntity.CostPointGroup Update(CostControlBusinessEntity.CostPointGroup entity)
        {
            if (entity == null)
            {
                return(null);
            }

            try
            {
                CostControlEntity.CostPointGroup CostPointGroup = CostPointGroupIMapper.Map <CostControlBusinessEntity.CostPointGroup, CostControlEntity.CostPointGroup>(entity);

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

                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 2
0
 public override string ToString() => $"{Name?.ToString()} ({CostPointGroup?.ToString()} - {Code?.ToString()})";