Example #1
0
 public ActionResult GenreUpdate(Genre genre)
 {
     try
     {
         genresDb.Update(genre);
         messagesGenreTable = Resources.Resource.MessageUpdated;
         return(RedirectToAction("GenresTable", "Admin"));
     }
     catch
     {
         messagesGenreTable = Resources.Resource.Error;
         return(RedirectToAction("GenresTable", "Admin"));
     }
 }