예제 #1
0
 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();
     }
 }
예제 #2
0
 public void SetTicketStatus(long id, Enums.TicketStatus status)
 {
     ticketDAL.SetTicketStatus(id, status);
 }