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));
     }
 }
Beispiel #2
0
 public TimeLogDTO(TimeLog timelog) :
     this(timelog.Id, timelog.Username, timelog.Time)
 {
 }