public async Task <ActionResult> Remove([FromRoute] int Id) { try { IList <Adult> adults = await adultService.getAdult(); Adult adultToRemove = adults.First(adult => adult.Id == Id); await adultService.Remove(adultToRemove); return(Ok(adultToRemove)); } catch (Exception e) { Console.WriteLine(e); return(StatusCode(404, e.Message)); } }