Пример #1
0
        public async Task <ActionResult> Get(int id)
        {
            var position = await service.Get(id);

            if (position != null)
            {
                return(Ok(position));
            }
            return(NotFound());
        }
Пример #2
0
        public async Task <ActionResult <EmployeeDto> > Get(int id)
        {
            var employee = await service.Get(id);

            if (employee != null)
            {
                return(Ok(employee));
            }
            return(NotFound());
        }