public async Task <ActionResult> UpdateAdult([FromRoute] int id, [FromBody] Adult adultus) { try { foreach (var adult in AdultService.GetAdultsAsync().Result) { if (adult.Id == id) { adultus.Id = id; await AdultService.UpdateAdultsAsync(adultus); } } return(Ok(id)); } catch (Exception e) { Console.WriteLine(e); return(StatusCode(500, e.Message)); } }