protected void signInBtn_Click(object sender, EventArgs e) { UserModel vmModel = new UserModel(); Response.Cookies["UserName"].Value = Username.Text.Trim(); Response.Cookies["Password"].Value = password.Text.Trim(); vmModel.UserName = Username.Text.Trim(); vmModel.Password = password.Text.Trim(); UserLoginBiz loginBiz = new UserLoginBiz(); bool msg = loginBiz.LoginMethod(vmModel); if (msg) { Response.Redirect("Default.aspx"); } else { Label1.Visible = true; Label1.Text = "Login ID and Password is invalid."; } }
public Msg Login(string Imei) { return(UserLoginBiz.Login(Imei)); }
public Msg Login(string username, string encodePsd, string Imei) { return(UserLoginBiz.Login(username, encodePsd, Imei)); }