public ActionResult Index(int?masterAlbumId = null, int?masterGenreId = null, int?masterMediaTypeId = null) { ClearUrlDictionary(); TrackCollectionModel trackCollectionModel = new TrackCollectionModel() { IsSecurityOperations = this.IsSecurityOperations, ControllerAction = "Index", MasterAlbumId = masterAlbumId, MasterGenreId = masterGenreId, MasterMediaTypeId = masterMediaTypeId }; try { IsSearch(trackCollectionModel.OperationResult); } catch (Exception exception) { trackCollectionModel.OperationResult.ParseException(exception); } return(View(trackCollectionModel)); }
public ActionResult Search(string masterUrl = null, string masterControllerAction = null, int?masterAlbumId = null, int?masterGenreId = null, int?masterMediaTypeId = null) { WriteUrlDictionary(masterUrl); TrackCollectionModel trackCollectionModel = new TrackCollectionModel() { IsSecurityOperations = this.IsSecurityOperations, ControllerAction = "Search", MasterControllerAction = masterControllerAction, MasterAlbumId = masterAlbumId, MasterGenreId = masterGenreId, MasterMediaTypeId = masterMediaTypeId }; try { IsSearch(trackCollectionModel.OperationResult); } catch (Exception exception) { trackCollectionModel.OperationResult.ParseException(exception); } return(PartialView(trackCollectionModel)); }