/// <summary> /// 转换为域名分类数据传输对象 /// </summary> /// <param name="entity">域名分类实体</param> public static DomainTypeDto ToDto(this DomainType entity) { if (entity == null) { return(new DomainTypeDto()); } return(entity.MapTo <DomainTypeDto>()); }
/// <summary> /// 转换为域名分类数据传输对象 /// </summary> /// <param name="entity">域名分类实体</param> public static DomainTypeDto ToDto(this DomainType entity) { if (entity == null) { return(new DomainTypeDto()); } return(entity.MapTo <DomainTypeDto>()); }