public void SetTicketStatus(long id, Enums.TicketStatus status) { using (var db = new ReallyLuckyContext()) { var ticket = db.Tickets.Where(t => t.TicketId == id).FirstOrDefault(); ticket.Status = status; db.Tickets.Attach(ticket); db.Entry(ticket).Property(p => p.Status).IsModified = true; db.SaveChanges(); } }
public void SetTicketStatus(long id, Enums.TicketStatus status) { ticketDAL.SetTicketStatus(id, status); }