Exemplo n.º 1
0
 public static Date FromDate(Domain.Date date)
 {
     return new Date {
         Day = date.Day,
         Month = date.Month,
         Year = date.Year
     };
 }
Exemplo n.º 2
0
 public static Event FromEvent(Domain.Event @event)
 {
     return new Event {
         Id = @event.Id,
         Name = @event.Name,
         Description = @event.Description,
         Date = FromDate(@event.Date)
     };
 }