コード例 #1
0
        public async Task <IActionResult> Get(int id)
        {
            var departmentDTO = await _contextManager.GetDepartmentByIdAsync(id);

            if (departmentDTO == null)
            {
                return(NotFound("No department from given id found."));
            }

            return(Ok(departmentDTO.ToDepartmentV1DTO()));
        }