//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 })); }
// 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 })); }
public ActionResult MbSearch(int category_id, AlbumViewModel searchModel) { var serviceController = new AlbumServiceController(); var viewModel = serviceController.AlbumMBSearch(searchModel, category_id); return(View("Index", viewModel)); }
// GET: Admin/Album public ActionResult Index(int category_id) { var serviceController = new AlbumServiceController(); var viewModel = serviceController.GetAlbumsViewModel(category_id); return(View(viewModel)); }