public ActionResult EditTicket(int id)
        {
            UpdateTicket model = _ticketAdapter.EditTicket(id, User.Identity.Name);


            if (model.IssueDescription == null)
            {
                return(RedirectToAction("ViewTickets"));
            }
            else
            {
                return(View(model));
            }
        }
示例#2
0
 public IHttpActionResult Post(AdminTicketVM editedTicket, int id)
 {
     _adapter.EditTicket(editedTicket, id);
     return(Ok());
 }