public ActionResult Edit(Genre genre) { try { Facade.GenRepository().Edit(genre); return RedirectToAction("Index"); } catch { return View(); } }
public void SetUp() { Genre a = new Genre { Id = 1, Name = "Action" }; Genre b = new Genre { Id = 2, Name = "Thriller" }; List<Genre> listGenre = new List<Genre>(); listGenre.Add(a); listGenre.Add(b); item = new ShoppingCardItem() { Id = 1, Title = "KillBill", Price = 20, Genres = listGenre }; }