public ActionResult <Shoe> Create([FromBody] Shoe newShoe)
 {
     try
     {
         return(Ok(_ss.Create(newShoe)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Exemplo n.º 2
0
 public ActionResult <Shoe> Create([FromBody] Shoe newShoe)
 {
     try
     {
         return(Ok(_bs.Create(newShoe)));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }