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); } } }
public static RoleListDTO From(RoleListCompleteDTO role) { return(new RoleListDTO(role)); }