Beispiel #1
0
        public TaskDto(ITask other) : base(other)
        {
            CreatedDateTime = other.CreatedDateTime;
            Description     = other.Description;
            Author          = new UserDto(other.Author);
            ToEmployee      = new UserDto(other.ToEmployee);
            Priority        = new PriorityDto(other.Priority);

            Completed = other.Completed;


            if (other.ParentTask != null)
            {
                ParentTask = new TaskDto(other.ParentTask);
            }

            if (other.ChildTasks != null)
            {
                ChildTasks = other.ChildTasks.Select(x => new TaskDto(x)).ToArray();
            }
        }
Beispiel #2
0
        public TaskDto(ITask other)
            : base(other)
        {
            CreatedDateTime = other.CreatedDateTime;
            Description     = other.Description;
            Author          = new UserDto(other.Author);
            ToEmployee      = new UserDto(other.ToEmployee);
            Priority        = new PriorityDto(other.Priority);

            Completed = other.Completed;

            if(other.ParentTask!=null)
            {
                ParentTask = new TaskDto(other.ParentTask);
            }

            if (other.ChildTasks != null)
            {
                ChildTasks = other.ChildTasks.Select(x => new TaskDto(x)).ToArray();
            }
        }