예제 #1
0
        public async Task <IActionResult> Get(int id)
        {
            var Applicant = await _applicantRepository.GetSingleAsync(id);

            if (Applicant == null)
            {
                return(NotFound()); // This makes it return 404; otherwise it will return a 204 (no content)
            }

            return(new ObjectResult(Applicant));
        }