示例#1
0
        public static CredentialsDto ToDto(this ICredentials credentials)
        {
            var dto = new CredentialsDto
            {
                AllowedRepositories = credentials.AllowedRepositories,
                Login          = credentials.Login,
                RepositoryType = credentials.RepositoryType
            };

            return(dto);
        }
示例#2
0
        public static Credentials ToCredentials(this CredentialsDto dto)
        {
            var credentials = new Credentials
            {
                AllowedRepositories = dto.AllowedRepositories,
                Login          = dto.Login,
                RepositoryType = dto.RepositoryType
            };

            return(credentials);
        }