Ejemplo n.º 1
0
        public virtual ActionResult Index()
        {
            var model = new VisualOutputsMappingViewModel();

            model = LoadPermissions(model);

            return(View("Index", model));
        }
Ejemplo n.º 2
0
        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);
        }