public virtual ActionResult Index() { var model = new VisualOutputsMappingViewModel(); model = LoadPermissions(model); return(View("Index", model)); }
private VisualOutputsMappingViewModel LoadPermissions( VisualOutputsMappingViewModel vomViewModel) { vomViewModel.HasLoadDataPermission = IDBContext.Current.HasPermission(Permission.VOM_LOAD_DATA); vomViewModel.DownloadFilterResultsViewModel.HasDownloadDataInExcelPermission = IDBContext.Current.HasPermission(Permission.VOM_DOWNLOAD_DATA_IN_EXCEL); vomViewModel.DownloadFilterResultsViewModel.HasDownloadDataInLayersPermission = IDBContext.Current.HasPermission(Permission.VOM_DOWNLOAD_DATA_IN_LAYERS); return(vomViewModel); }