Ejemplo n.º 1
0
 public int GetId()
 {
     if (!cached)
     {
         _id    = ticket.GetId();
         cached = true;
     }
     return(_id);
 }
Ejemplo n.º 2
0
 public TicketViewModel WriteViewModel(ITicket ticket)
 {
     return(new TicketViewModel()
     {
         Id = ticket.GetId(),
         Name = ticket.GetName(),
         Content = ticket.GetContent(),
         CreationDate = ticket.GetCreationDate(),
         ModificationDate = ticket.GetModificationDate()
     });
 }