public ActionResult Index(PromoModel model) { if (ModelState.IsValid) { // TODO: save to DB, or execute other business logic. return View("Success", model); } return View(model); }
public ActionResult Index() { var model = new PromoModel(); return View(model); }