Example #1
0
        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");
 }
Example #4
0
        public ActionResult Index()
        {
            var m = new Models.PromotionModel();

            return(View(m));
        }