Exemplo n.º 1
0
        public async Task <DesciplineListDto> GetDescipline(int id)
        {
            var item = await _context.FindAsync <Descipline>(id);

            return(new DesciplineListDto
            {
                CreatedDate = item.CreatedDate,
                Id = item.Id,
                Description = item.Description,
                Title = item.Name
            });
        }
        public async Task <ValueUnitListDto> GetValueUnit(int id)
        {
            var item = await _context.FindAsync <ValueUnit>(id);

            return(new ValueUnitListDto
            {
                Id = item.Id,
                Name = item.Name,
                MathNum = item.MathNum,
                MathType = item.MathType,
                ParentId = item.ParentId
            });
        }