public ActionResult VerifyOTP(string OTP) { STP_GetUserDetail user = (STP_GetUserDetail)Session["beforeVerify"]; if (user != null) { ResponseModel test = objUser.VerifyUserOTP(user, OTP); SessionManager.GetInstance.ActiveUser = user; return(Json(test, JsonRequestBehavior.AllowGet)); } else { return(Json(new ResponseModel() { Status = false, ErrorMessage = "" }, JsonRequestBehavior.AllowGet)); } }