public ActionResult <Drink> GetDrinkById(int drinkId)
 {
     try
     {
         return(Ok(_ds.GetDrinkById(drinkId)));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }
Example #2
0
 public DrinkDTO Get(int id)
 {
     return(_service.GetDrinkById(id));
 }