public static void Delete(Priority p) { var db = new TicketingSystemDBContext(); db.Entry(p).State = EntityState.Deleted; db.SaveChanges(); }
public static void Update(Ticket t) { var db = new TicketingSystemDBContext(); db.Entry(t).State = EntityState.Modified; db.SaveChanges(); }