public static CredentialsDto ToDto(this ICredentials credentials) { var dto = new CredentialsDto { AllowedRepositories = credentials.AllowedRepositories, Login = credentials.Login, RepositoryType = credentials.RepositoryType }; return(dto); }
public static Credentials ToCredentials(this CredentialsDto dto) { var credentials = new Credentials { AllowedRepositories = dto.AllowedRepositories, Login = dto.Login, RepositoryType = dto.RepositoryType }; return(credentials); }