public TimeEntry(Task task, string comment = null) { TimeRecorded = DateTime.Now; Task = task; Comment = comment; Project = task.Project; }
public TimeEntry(Project project, int minutesSpent, string comment = null, Task associatedTask = null) { TimeRecorded = DateTime.Now; Project = project; MinutesSpent = minutesSpent; Comment = comment; AssociatedTask = associatedTask; }
public TimeEntry(Task task, DateTime time, string comment = null, Task associatedTask = null) { Task = task; TimeRecorded = time; Comment = comment; Project = task.Project; AssociatedTask = associatedTask; }