public ActionResult Authentication(string email, string password) { int ch = userr.Authentification(email, password); user user = new user(); if (ch == 0) { int id = userr.FindByEmail(email); user = userr.getUserbyid(id); Session["name"] = user.first_name; Session["id"] = id; Session["email"] = user.e_mail; return(RedirectToAction("../Jobs/Index")); } else { return(View()); } }