Ejemplo n.º 1
0
        public async Task <IActionResult> FindApplication(int id)
        {
            //Application application = _university.FindAsyncApplication(id);
            //if (application == null)
            //{
            //    return NotFound();
            //}
            //else
            //{
            //    return new ObjectResult(application);
            //}
            Application application = await _university.FindAsyncApplication(id);

            if (application == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(application));
        }