Exemple #1
0
 public IHttpActionResult Post([FromBody] Inventory inventory)
 {
     try
     {
         var resp = repository.AddNewInventory(inventory);
         return(Ok(resp));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }