public ActionResult PageAccess(string UID) { List <AuthorizedPage> pages = new List <AuthorizedPage>(); if (UID != null) { AuthenticationBL BL = new AuthenticationBL(); pages = BL.GetAuthorizedPages(Convert.ToInt32(Session["elt_account_number"]), int.Parse(UID)); } return(View(pages)); }