Ejemplo n.º 1
0
 public ActionResult <Library> Create([FromBody] Library newLibrary)
 {
     try
     {
         return(Ok(_ls.Create(newLibrary)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }