/* public ActionResult Create(TicketDTO ticket) * { * if (ModelState.IsValid) * { * ticket = _client.AddTicket(ticket.AccountId, ticket.Text); * * return RedirectToAction("Details", new { id = ticket.TicketNumber }); * } * * return View(); * } */ // ADHV view-model 'CreateTicketVM' public ActionResult Create(CreateTicketVM newTicket) { if (ModelState.IsValid) { TicketDTO ticket = _client.AddTicket(newTicket.AccId, newTicket.Problem); return(RedirectToAction("Details", new { id = ticket.TicketNumber })); } return(View()); }