public CompositeTaskSetDto(ICompositeTaskSet other)
        {

            LoggedUser = new UserDto( other.LoggedUser);


            PageIndex = other.Page.PageIndex;
            PageSize  = other.Page.PageSize;
            Page      = other.Page.Select(x => new TaskDto(x)).ToArray();


            Statuses   = other.Statuses.Select  (x => new AggregateClassifierDto(x)).ToArray();
            Priorities = other.Priorities.Select(x => new AggregateClassifierDto(x)).ToArray();
            Users      = other.Users.Select(x => new UserDto(x)).ToArray();
        }
Exemplo n.º 2
0
        public TaskDto(ITask other):base(other)
        {
            CreatedDateTime = other.CreatedDateTime;
            StartDateTime = other.StartDateTime;

            EndDateTime = other.EndDateTime;



            Description     = other.Description;
            Author          = new UserDto(other.Author);
            ToEmployee      = new UserDto(other.ToEmployee);
            Manager         = new UserDto(other.Manager);
            Priority        = new PriorityDto(other.Priority);
            Status          = new StatusDto(other.Status);


            Name = other.Name;

            Result = other.Result;
            Objective = other.Objective;



            if (other.Manager != null)
            {
                Manager = new UserDto(other.Manager);
            }

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

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