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