public ActionResult GnlRpt() { var moduleid = sPService.GetSecurityModuleByControllerAction("Reports", "GnlRpt"); ViewBag.Reports = sPService.GetDataWithParameter(new { USER_ID = SessionHelper.LoggedInUserId, ReportModuleId = moduleid }, "USP_GET_USER_ACCESSED_REPORT").Tables[0].AsEnumerable().Select(x => new ReportInformation() { Id = x.Field <int>(0), ReportName = x.Field <string>(1), SerialNo = x.Field <int>(2) }).ToList(); return(View()); }