public async Task Execute(Command command) { var user = command._data; var hash = new HashedPassword(PasswordHelper.CreateHash(user.Password)); user.Password = hash.ToSaltedPassword(); _uow.UserRepository.Insert(user.ToUserEntity()); await _uow.SaveChangesAsync(); }