public ActionResult Index(loign user) { string us = Request.Form["us"]; string mk = Request.Form["mk"]; if ("admin".Equals(us) & "123".Equals(mk)) { return(View("~/Views/Product/Index.cshtml")); } return(View()); }
public ActionResult login(loign user) { if ("admin".Equals(user.account) & "123".Equals(user.password)) { return(RedirectToAction("Index")); } else { return(View()); } }