コード例 #1
0
        public async Task <ActionResult <ResponseAwEmployee> > GetEmployees(int id)
        {
            var results = await aworkrepository.GetEmployee(id);

            if (results == null)
            {
                return(NotFound("No employees were found"));
            }

            return(Ok(results));
        }