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