コード例 #1
0
        public async Task <IActionResult> GetAllCareers()
        {
            var allCareers = await _hRepository.GetAllCareers();

            if (allCareers == null)
            {
                return(NotFound());
            }

            allCareers = allCareers.OrderBy(x => x.Name);

            return(new OkObjectResult(allCareers));
        }