public GangUserData SetCredential( GangUserCredential value) { return(new GangUserData( Id, Name, Email, Roles, Secret, LinkCode, Challenge, Credentials .RemoveAll(c => c.Id == value.Id) .Add(value) )); }
public static GangAuthenticationCredential ToContract( this GangUserCredential source ) { if (source == null) { return(null); } return(new GangAuthenticationCredential( source.Id, source.Transports )); }