public ActionResult EditTicket(int id) { UpdateTicket model = _ticketAdapter.EditTicket(id, User.Identity.Name); if (model.IssueDescription == null) { return(RedirectToAction("ViewTickets")); } else { return(View(model)); } }
public IHttpActionResult Post(AdminTicketVM editedTicket, int id) { _adapter.EditTicket(editedTicket, id); return(Ok()); }