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