Пример #1
0
        public List <DepreciationDto> GetDepreciation()
        {
            var objRpaResult = _dbContext.uspDepreciation().ToList();

            List <DepreciationDto> lstDepreciationDto = new List <DepreciationDto>();

            foreach (var obj in objRpaResult)
            {
                lstDepreciationDto.Add(new DepreciationDto()
                {
                    AHID   = obj.AHID,
                    AHName = obj.AHName,
                    Rate   = obj.Rate == null ? default(byte) : obj.Rate.Value
                });
            }

            return(lstDepreciationDto);
        }