Exemplo n.º 1
0
 public ActionResult EditTicketDetail(Ticket editedTicket, int TypeId, int PropertyId)
 {
     if (ModelState.IsValid)
     {
         editedTicket.TicketTypeId     = TypeId;
         editedTicket.TicketPropertyId = PropertyId;
         TicketHelper.EditTicketDetail(db, editedTicket, User.Identity.GetUserId());
         return(RedirectToAction("Detail", "Tickets", new { id = editedTicket.Id }));
     }
     ViewBag.TypeId     = new SelectList(db.Types, "Id", "Name");
     ViewBag.PropertyId = new SelectList(db.Properties, "Id", "Name");
     return(View(editedTicket));
 }