public TaskDetailsDTO(TaskDetails details) : this(details.Id, details.Name, details.Description, details.IsDone, details.Time, null, details.Users) { foreach (var timelog in details.TimeLog) { TimeLog.Add(new TimeLogDTO(timelog)); } }
public TimeLogDTO(TimeLog timelog) : this(timelog.Id, timelog.Username, timelog.Time) { }