public ActionResult AdminHome(Avoport.Models.AdminHomeModel model) { try { // TODO: Add insert logic here return RedirectToAction("Index"); } catch { return View(model); } }
public ActionResult Register(Avoport.Models.RegisterModel model) { try { // TODO: Add insert logic here return RedirectToAction("Index"); } catch { return View(model); } }
public ActionResult AdminLogin(Avoport.Models.AdminLoginModel model) { if (ModelState.IsValid) { if (model.IsValid(model.Username, model.Password)) { FormsAuthentication.SetAuthCookie(model.Username, model.RememberMe); return RedirectToAction("AdminHome", "AdminHome"); } else { ModelState.AddModelError("", "The User Name or Password provided is incorrect !"); } } return View(model); }