Exemplo n.º 1
0
        public ActionResult Edit(Genre genre)
        {
            try
            {
                Facade.GenRepository().Edit(genre);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
Exemplo n.º 2
0
 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
     };
 }