private StandardReportLookupListsCacheObject GetStandardReportAndLookups() { UcbServiceClient sc = new UcbServiceClient(); StandardReportVMDC returnObject = sc.GetStandardReport(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); StandardReportLookupListsCacheObject CachedLists = new StandardReportLookupListsCacheObject(); CachedLists.ReportCategoryList = Mapper.Map <IEnumerable <ReportCategoryDC>, List <ReportCategoryModel> >(returnObject.ReportCategoryList); return(CachedLists); }
public ActionResult MIReport() { sessionManager.PageFrom = "MIMenu"; string ReportCode = Request.QueryString["ReportID"]; UcbServiceClient sc = new UcbServiceClient(); StandardReportVMDC report = null; try { report = sc.GetStandardReport(CurrentUser, CurrentUser, "Ucb", "", ReportCode); sc.Close(); } catch (Exception e) { ExceptionManager.HandleException(e, sc); } sessionManager.CurrentStandardReport = Mapper.Map <StandardReportModel>(report.StandardReportItem); //Report Name now passed in session sessionManager.RequestedReport = report.StandardReportItem.ReportName; return(Redirect("~/Reports/Reports.aspx")); }