Esempio n. 1
0
 public async Task <ActionResult <string> > AddChild([FromBody] Child child)
 {
     Console.WriteLine(1);
     try
     {
         string result = familyService.AddChildren(child);
         Console.WriteLine(result);
         return(Ok(result));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         return(StatusCode(500, e.Message));
     }
 }