コード例 #1
0
 public TicketViewModel WriteViewModel(ITicket ticket)
 {
     return(new TicketViewModel()
     {
         Id = ticket.GetId(),
         Name = ticket.GetName(),
         Content = ticket.GetContent(),
         CreationDate = ticket.GetCreationDate(),
         ModificationDate = ticket.GetModificationDate()
     });
 }