Пример #1
0
        public ActionResult Edit(int id, FormCollection collection)
        {
            var newGenre = new Genre(collection, id);

            genreServices.UpdateGenre(newGenre);
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult EditGenre(GenreModel model)
 {
     _genreServices = new GenreServices();
     _genreServices.UpdateGenre(model);
     return(RedirectToAction("ListGenre"));
 }