public async Task <ActionResult> DeleteAdultAsync([FromRoute] int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { await FileAdapter.RemoveAdultAsync(id); return(Ok()); } catch (Exception e) { Console.WriteLine(e); return(StatusCode(500, e.Message)); } }