Exemplo n.º 1
0
        public ActionResult Index()
        {
            ClearUrlDictionary();

            MediaTypeCollectionModel mediaTypeCollectionModel = new MediaTypeCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index"
            };

            try
            {
                IsSearch(mediaTypeCollectionModel.OperationResult);
            }
            catch (Exception exception)
            {
                mediaTypeCollectionModel.OperationResult.ParseException(exception);
            }

            return(View(mediaTypeCollectionModel));
        }
Exemplo n.º 2
0
        public ActionResult Search(string masterControllerAction = null)
        {
            WriteUrlDictionary();

            MediaTypeCollectionModel mediaTypeCollectionModel = new MediaTypeCollectionModel()
            {
                IsSecurityOperations   = this.IsSecurityOperations,
                ControllerAction       = "Search",
                MasterControllerAction = masterControllerAction
            };

            try
            {
                IsSearch(mediaTypeCollectionModel.OperationResult);
            }
            catch (Exception exception)
            {
                mediaTypeCollectionModel.OperationResult.ParseException(exception);
            }

            return(PartialView(mediaTypeCollectionModel));
        }