예제 #1
0
        public ActionResult Index(int?masterArtistId = null)
        {
            ClearUrlDictionary();

            AlbumCollectionModel albumCollectionModel = new AlbumCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index",
                MasterArtistId       = masterArtistId
            };

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

            return(View(albumCollectionModel));
        }
예제 #2
0
        public ActionResult Search(string masterUrl = null, string masterControllerAction = null, int?masterArtistId = null)
        {
            WriteUrlDictionary(masterUrl);

            AlbumCollectionModel albumCollectionModel = new AlbumCollectionModel()
            {
                IsSecurityOperations   = this.IsSecurityOperations,
                ControllerAction       = "Search",
                MasterControllerAction = masterControllerAction,
                MasterArtistId         = masterArtistId
            };

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

            return(PartialView(albumCollectionModel));
        }