예제 #1
0
 public static RoleTypeDTO convertRoleType2DTO(RoleType obj, EnouFlowOrgMgmtContext db)
 {
     return(new RoleTypeDTO()
     {
         roleTypeId = obj.roleTypeId,
         guid = obj.guid,
         name = obj.name,
         isVisible = obj.isVisible,
         createTime = obj.createTime,
         roles = obj.getRolesBelongTo(db).Select(
             role => convertRole2DTO(role, db)).ToList()
     });
 }