private async Task <EncryptionUserDto> CreateEncryptionUserAsync(string username, string password, string passwordHash, string userId) { string saltKey = UnitHelper.CreateSalt(); return(await _encryptionUserService.CreateAsync(new EncryptionUserDto { UserEncrypted = UnitHelper.Encrypt(string.Format("{0}&{1}", username, password), passwordHash, saltKey, VIKEY), PasswordHash = passwordHash, SaltKey = saltKey, VIKey = VIKEY, UserId = userId })); }