//[HttpPost] //public ActionResult DeleteQuestionData(int QuesId) //{ // try // { // User user = (User)Session["UserLoggedIn"]; // if (user == null) // { // return Redirect("/Home/Login"); // } // HomeViewModel viewModel = new HomeViewModel(); // service.DeleteQuestionData(QuesId, user.UserId); // viewModel.GetAllQuestionList = service.GetAllQuestion(); // return PartialView("_ManageQuestionList", viewModel); // } // catch (Exception ex) // { // throw; // } //} #endregion #region Users public ActionResult Users(User user) { User session = (User)Session["UserLoggedIn"]; if (session == null) { return(Redirect("/Home/Login")); } ViewBag.msg = TempData["Msg"] as string; ViewBag.UserType = service.UserTypeLoad(); ViewBag.Departments = service.DepartmentLoad(); ViewBag.Areas = service.AreasLoad(); ViewBag.Regions = service.RegionsLoad(); HomeViewModel viewModel = new HomeViewModel(); //HomeService service = new HomeService(); viewModel.GetAllUserList = service.GetAllUsers(); return(View()); }