public void Details(Drink drink) { if (drink != null) { IngredientList.ItemsSource = DrinkClient.GetDrink(drink.ID).Ingredients; txtName.Text = drink.Name;; txtDesc.Text = drink.Description; txtPrice.Text = drink.Price.ToString(); txtImg.Text = drink.Img; } }
// GET: Drink/Details/5 public ActionResult Details(int drinkId) { return(View(client.GetDrink(drinkId))); }