public static EntityAlias.ReleaseDefinition ToEntity(this Kickstart.Build.Services.Model.ReleaseDefinition source) { return(new EntityAlias.ReleaseDefinition { Name = source.ReleaseDefinitionName, Id = source.ReleaseDefinitionIdentifier }); }
public static ProtoAlias.ReleaseDefinition ToProto(this Kickstart.Build.Services.Model.ReleaseDefinition source) { var rd = new ProtoAlias.ReleaseDefinition { ReleaseDefinitionIdentifier = source.ReleaseDefinitionIdentifier, ReleaseDefinitionName = source.ReleaseDefinitionName, }; if (source.BuildDefinitions != null) { rd.BuildDefinitions.AddRange(source.BuildDefinitions.ToProto()); } return(rd); }