public ActionResult Approved(PoandPoApp poandPoApp) { QueryCRUD qr = new QueryCRUD(); if (qr.EditDt(poandPoApp)) { return(RedirectToAction("Index")); } return(View()); }
public ActionResult Approved(PoandPoApp poandPoApp, 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.EditDt(poandPoApp, byid)) { return(RedirectToAction("ShowPo")); } } return(View()); }