Esempio n. 1
0
 public ActionResult <House> CreateHouse([FromBody] House newHouse)
 {
     try
     {
         return(Ok(_hs.CreateHouse(newHouse)));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }