public ActionResult ApprovedPR(PRandPRApp prandpra, T_Admin t_Admin) { QueryCRUD qr = new QueryCRUD(); T_Admin t_Admins = new T_Admin(); if (Session["User_name"] != null) { t_Admin.User_name = Session["User_name"].ToString(); t_Admins = qr.Get_T_Admins(t_Admin.User_name); int byid = t_Admins.User_ID; if (qr.EditPR(prandpra, byid)) { return(RedirectToAction("ShowPR")); } } return(View()); }