public static DTO.TaskType ToDTO(this TaskType source) { var h = new DTO.TaskType(); h.TypeName = source.TypeName; if (source.AnyAttr != null) { h.AnyAttr = source.AnyAttr.ToArray(); } return(h); }
public static TaskType FromDTO(this DTO.TaskType source) { var h = new TaskType(); h.TypeName = source.TypeName; if (source.AnyAttr != null) { h.AnyAttr = source.AnyAttr.ToList(); } return(h); }
public static DTO.TaskType ToDTO(this TaskType source) { var h = new DTO.TaskType(); h.TypeName = source.TypeName; if (source.AnyAttr != null) h.AnyAttr = source.AnyAttr.ToArray(); return h; }