Пример #1
0
        public ActionResult Index()
        {
            ClearUrlDictionary();

            GenreCollectionModel genreCollectionModel = new GenreCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index"
            };

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

            return(View(genreCollectionModel));
        }
Пример #2
0
        public ActionResult Search(string masterUrl = null, string masterControllerAction = null)
        {
            WriteUrlDictionary(masterUrl);

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

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

            return(PartialView(genreCollectionModel));
        }