// Get Submitted PO List public ActionResult GetSubmitedPOList() { var sessionObj = Session["SessionBO"] as UserModel; if (sessionObj != null) { BOMDetails objBOMDetails = new BOMDetails(); // SP -> GetSubmitedPOList objBOMDetails.GetSubmitedPOList(sessionObj.id); ViewBag.IsAuthorized = sessionObj.isAuthorized; ViewBag.LoggedInUser = sessionObj.firstName; // Control go to SubmitedPOList.cshtml page return(View("../Admin/SubmitedPOList", objBOMDetails)); } else { return(RedirectToAction("LoginUser", "Login")); } }
public ActionResult GetSubmitedPOList() { var sessionObj = Session["SessionBO"] as UserModel; if (sessionObj != null) { BOMDetails objBOMDetails = new BOMDetails(); objBOMDetails.GetSubmitedPOList(sessionObj.id); // GenericTextValue objGenericTextValue = new GenericTextValue(); // ViewBag.lstRefinery = objGenericTextValue.GetSubRefineryList(sessionObj.id); ViewBag.IsAuthorized = sessionObj.isAuthorized; ViewBag.LoggedInUser = sessionObj.firstName; return(View("../User/SubmitedPOList", objBOMDetails)); } else { return(RedirectToAction("LoginUser", "Login")); } }