Ejemplo n.º 1
0
        public ActionResult CreateNewGenre(String name)
        {
            GenreService generService = new GenreService();
            generService.createNew(name);

            return RedirectToAction("Index");
        }
Ejemplo n.º 2
0
 public ActionResult Genre(int value)
 {
     ViewBag.DefaultGenreValue = value;
     GenreService genre = new GenreService();
     return View(genre.getAllGener());
 }
Ejemplo n.º 3
0
 public ActionResult Genre()
 {
     GenreService genre = new GenreService(); 
     return View(genre.getAllGener());
 }
Ejemplo n.º 4
0
 public ActionResult DeleteGenre(String genreID)
 {
     GenreService generService = new GenreService();
     generService.deleteGenre(Int32.Parse(genreID));
     return RedirectToAction("Index");
 }
Ejemplo n.º 5
0
 public ActionResult EditGenre(String genreID, String newName)
 {
     GenreService generService = new GenreService();
     generService.editGenre(Int32.Parse(genreID), newName);
     return RedirectToAction("Index");
 }