예제 #1
0
        //GET: Admin/Album/Add/{category_id}
        public ActionResult AddAlbum(int category_id, string MusicBrainz_id, string Title, string ArtistName)
        {
            var serviceController = new AlbumServiceController();
            var viewModel         = serviceController.AddAlbum(category_id, MusicBrainz_id, Title, ArtistName);

            return(RedirectToAction("Index", new { category_id }));
        }
예제 #2
0
        // GET: Admin/Album/Delete
        public ActionResult DeleteAlbum(int album_id, int category_id)
        {
            var serviceController = new AlbumServiceController();
            var viewModel         = serviceController.DeleteAlbum(album_id);

            return(RedirectToAction("Index", new { category_id }));
        }
예제 #3
0
        public ActionResult MbSearch(int category_id, AlbumViewModel searchModel)
        {
            var serviceController = new AlbumServiceController();
            var viewModel         = serviceController.AlbumMBSearch(searchModel, category_id);

            return(View("Index", viewModel));
        }
예제 #4
0
        // GET: Admin/Album
        public ActionResult Index(int category_id)
        {
            var serviceController = new AlbumServiceController();
            var viewModel         = serviceController.GetAlbumsViewModel(category_id);

            return(View(viewModel));
        }