public ActionResult login(string email, string password) { string resp = Request.Form["g-recaptcha-response"]; try { Utility.IsValidCaptcha(resp); var xuser = bal.Login(email, password); //create session NewspaperSBTSession.CurrentUser = xuser; if (xuser.isActive == false) { shared.setReturnMessages("", "you are banned to access,<br> please contact ANC Vendor Connect department ", true); return(RedirectToAction("index", "login")); } // return RedirectToAction("Index", "Admin"); return(RedirectToAction("UserRegion", "Login")); } catch (Exception exp) { shared.setReturnMessages("Login Failed", exp.Message, true); return(RedirectToAction("index", "login")); } }