Beispiel #1
0
 public ActionResult Edit(Ticket ticket, int id)
 {
     ticket          = ticketrepository.GetById(id);
     ViewBag.MovieId = new SelectList(movierepository.GetAll(), "MoviedId", "MovieName", ticket.MovieId);
     ViewBag.ShowId  = new SelectList(showrepository.GetAll(), "ShowId", "ShowTime", ticket.ShowId);
     return(View(ticket));
 }