public Boolean Post([FromBody] Manager m) { ManagerBusiness mb = new ManagerBusiness(); // return cb.insertClientRest(name,mail,pass,card);// return(mb.loginClient(m.name, m.password)); }
protected void Buttonlogin_Click(object sender, EventArgs e) { String pass = tbPasswordLogin.Text; String email = tbEmailLogin.Text; ManagerBusiness mb = new ManagerBusiness(); Boolean exits = mb.loginClient(email, pass); if (exits) { Session["usuario"] = "A"; Session["correo"] = tbEmailLogin.Text; Response.BufferOutput = true; Response.Redirect("http://10.234.222.227:8095/public/Default.aspx"); } else { Label1.Text = "Incorrect data"; } }