Beispiel #1
0
        public IActionResult Edit(string id)
        {
            try
            {
                if (string.IsNullOrEmpty(id))
                {
                    return(RedirectToAction("ViewAllFoods", "AllFood"));
                }

                Food FoodEdit = _IFood.FoodByID(Convert.ToInt32(id));

                return(View("Edit", FoodEdit));
            }
            catch (Exception)
            {
                throw;
            }
        }