Пример #1
0
 public ActionResult <Burger> Get(string id)
 {
     try
     {
         Burger burger = _bs.GetBurgerById(id);
         return(Ok(burger));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }