Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 public ActionResult login(loign user)
 {
     if ("admin".Equals(user.account) & "123".Equals(user.password))
     {
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }