Ejemplo n.º 1
0
 public ActionResult AssignPending()
 {
     var m = new PromotionModel();
     UpdateModel(m);
     m.AssignPending();
     return RedirectToAction("Index");
 }
Ejemplo n.º 2
0
 public ActionResult List()
 {
     var m = new PromotionModel();
     UpdateModel(m);
     return PartialView("List", m);
 }
Ejemplo n.º 3
0
 public ActionResult Index()
 {
     var m = new PromotionModel();
     UpdateModel(m);
     return View(m);
 }
Ejemplo n.º 4
0
 public ActionResult Export()
 {
     var m = new PromotionModel();
     UpdateModel(m);
     return new ExcelResult(m.Export(), "promotion.xls");
 }
Ejemplo n.º 5
0
 public ActionResult List(PromotionModel m)
 {
     return View("List", m);
 }
Ejemplo n.º 6
0
 public ActionResult AssignPending(PromotionModel m)
 {
     m.AssignPending();
     return RedirectToAction("Index");
 }
Ejemplo n.º 7
0
 public ActionResult Reload(PromotionModel m)
 {
     return Redirect("/Promotion");
 }
Ejemplo n.º 8
0
 public ActionResult Export()
 {
     var m = new PromotionModel();
     UpdateModel(m);
     return new ExcelResult { Data = m.Export(), FileName = "promotion.xls" };
 }