// GET: TicketTypes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TicketType ticketType = db.TicketTypes.Find(id); if (ticketType == null) { return(HttpNotFound()); } return(View(ticketType)); }
public Ticket(int id, string title, string description, DateTime created, Project project, TicketType type, TicketPriority priority) { this.Id = id; this.Title = title; this.Description = description; this.Created = created; this.Project = project; this.TicketType = type; }