예제 #1
0
        public async Task <ActionResult> EditAdult([FromRoute] int Id, [FromBody] Adult adult)
        {
            try
            {
                Console.WriteLine(adult);
                await _adultService.UpdateAdultAsync(Id, adult);

                return(Ok());
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(StatusCode(500, e.Message));
            }
        }