public ActionResult Index(EventViewModel model) { if (ModelState.IsValid) { currentEvent = model; if (!User.Identity.IsAuthenticated) { return Redirect("http://localhost:9456/Pages/LoginPage.aspx?publish=true"); } else { return RedirectToAction("SaveEvent"); } } model.SelectedCountryId = 0; SetModelCollections(model); return View(model); }
public ActionResult Edit(EditViewModel model) { if (ModelState.IsValid) { if (!User.Identity.IsAuthenticated) { return Redirect("http://localhost:9456/Pages/LoginPage.aspx?publish=true"); } else { currentEvent = model; return RedirectToAction("ChangeEvent"); } } return View(model); }