예제 #1
0
        public RoleListDTO(RoleListCompleteDTO role)
        {
            if (role == null)
            {
                return;
            }

            this.Id            = role.Id;
            this.Name          = role.Name;
            this.Description   = role.Description;
            this.IsMasking     = role.IsMasking;
            this.IsAllJobs     = role.IsAllJobs;
            this.EmployeeTypes = new List <int>();
            if (role.EmployeeTypes != null && role.EmployeeTypes.Count > 0)
            {
                foreach (var item in role.EmployeeTypes)
                {
                    EmployeeTypes.Add(item);
                }
            }
        }
예제 #2
0
 public static RoleListDTO From(RoleListCompleteDTO role)
 {
     return(new RoleListDTO(role));
 }