public ActionResult Create() { ViewBag.trainerList = ManagerTrainer.GetTrainers().ToList(); ViewBag.planList = ManagerPlan.Getplans().ToList(); return(View()); }
public ActionResult Edit(string id) { ViewBag.trainerList = ManagerTrainer.GetTrainers().ToList(); ViewBag.planList = ManagerPlan.Getplans().ToList(); if (string.IsNullOrEmpty(id)) { return(RedirectToAction("Index", "Customer", null)); } return(View(ManagerCustomer.DetailCustomer(id))); }
// GET: Food public ActionResult Index() { return(View(ManagerPlan.Getplans())); }