public ActionResult Promote(string id) { var iid = id.Substring(1).ToInt(); var m = new Models.PromotionModel(); m.Promote(iid); return(RedirectToAction("Index")); }
public ActionResult Index() { var m = new Models.PromotionModel(); return View(m); }
public ActionResult Promote(string id) { var iid = id.Substring(1).ToInt(); var m = new Models.PromotionModel(); m.Promote(iid); return RedirectToAction("Index"); }
public ActionResult Index() { var m = new Models.PromotionModel(); return(View(m)); }