Esempio n. 1
0
 public static Status Map(DayRecord record, TimeSpan stash)
 {
     return(new Status(DayMapper.Map(record), stash));
 }
Esempio n. 2
0
 public static LogBook SafeMap(LogBookData data)
 {
     return(new LogBook(
                data?.Days?.Select(d => DayMapper.Map(d)).ToList() ?? new List <Day>(),
                data?.Stash ?? TimeSpan.Zero));
 }