public async Task <ActionResult <IList <Adult> > > GetAdultsAsync() { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { IList <Adult> adults = await FileAdapter.GetAdultsAsync(); return(Ok(adults)); } catch (Exception e) { Console.WriteLine(e); return(StatusCode(500, e.Message)); } }