示例#1
0
 public IActionResult EditTicket(TicketViewModel ticket)
 {
     _ticket.Content = HtmlMarkupManager.EncodeHtml(ticket.Content);
     _ticket.Edit(ViewModelConverter.ConvertViewModelToTicket(ticket));
     return(RedirectToAction("Details", new { id = ticket.Id }));
 }