Example #1
0
 public ActionResult <Burger> Put(string id, [FromBody] Burger burgerData)
 {
     try
     {
         burgerData.Id = id;
         var burger = _bs.EditBurger(burgerData);
         return(Ok(burger));
     }
     catch (Exception e) { return(BadRequest(e.Message)); }
 }