예제 #1
0
        private void to_login_Click(object sender, EventArgs e)
        {
            logincs login = new logincs();

            this.Hide();
            login.Show();
        }
예제 #2
0
 public ActionResult Login(logincs lg)
 {
     try
     {
         var any = db.partners.Any(o => o.email == lg.email && o.pass == lg.pass);
         if (!any)
         {
             return(RedirectToAction("Log", new { title = "Sai Email hoặc Mật khẩu" }));
         }
         else
         {
             return(RedirectToAction("Index"));
         }
     }
     catch (Exception ex)
     {
         return(RedirectToAction("Log", new { title = "Sai Email hoặc Mật khẩu" }));
     }
     return(View());
 }