public ActionResult Edit([Bind(Include = "Id,Name")] TicketPriority ticketPriority) { if (ModelState.IsValid) { TicketPriorityHelper.Edit(ticketPriority.Id, ticketPriority.Name); return(RedirectToAction("Index")); } return(View(ticketPriority)); }
// GET: TicketPriorities/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TicketPriority ticketPriority = TicketPriorityHelper.GetTicketPriority(id); if (ticketPriority == null) { return(HttpNotFound()); } return(View(ticketPriority)); }
// GET: TicketPriorities public ActionResult Index() { return(View(TicketPriorityHelper.GetTicketPrioritys())); }
public ActionResult DeleteConfirmed(int id) { TicketPriorityHelper.Delete(id); return(RedirectToAction("Index")); }