Ejemplo n.º 1
0
        public dtoUserActivityStatistic(dtoActivityStatistic dto, Int32 userId)
        {
            this.Id       = dto.Id;
            this.parentId = dto.parentId;
            this.Name     = dto.Name;

            this.UserId = userId;

            this.SubActivities = (from item in dto.SubActivities select new dtoUserSubActivityStatistic(item, userId)).ToList();
        }
Ejemplo n.º 2
0
        public dtoUserActivityStatistic(dtoActivityStatistic dto, litePerson user)
        {
            this.Id       = dto.Id;
            this.parentId = dto.parentId;
            this.Name     = dto.Name;

            this.User = user;

            this.SubActivities = (from item in dto.SubActivities select new dtoUserSubActivityStatistic(item, user)).ToList();
        }