예제 #1
0
 public void AddTicket(Ticket ticket)
 {
     _insecticContext.Tickets.Add(ticket);
     _insecticContext.SaveChanges();
 }
예제 #2
0
 public void AddNote(Note note)
 {
     _insecticContext.Notes.Add(note);
     _insecticContext.SaveChanges();
 }
예제 #3
0
 public void AddComment(int ticketId, Comment comment)
 {
     comment.CommentDate = DateTime.Now;
     _insecticContext.TicketComments.Add(comment);
     _insecticContext.SaveChanges();
 }