Пример #1
0
        public ICommandHandlerResult Handle(RegisterUser command)
        {
            var referrer = _refererRepository.WithUrl(command.ReferrerUrl);

            referrer.BroughtUser(command.EmailAddress);
            _refererRepository.Store(referrer);
            _membershipProvider.CreateUser(command.EmailAddress, command.Password);
            return(Results.Success());
        }