Exemplo n.º 1
0
        public void AddDelegate(DelegateData delegateData)
        {
            var sessionDelegate = new SessionDelegate(delegateData);

            delegateRepository.Insert(sessionDelegate);
            delegateRepository.Save();
        }
Exemplo n.º 2
0
        public void Handle(AddDelegateCommand command)
        {
            var sessionDelegate = new SessionDelegate(command);

            delegateRepository.Insert(sessionDelegate);
            delegateRepository.Save();
        }
Exemplo n.º 3
0
        public void Handle(UpdateDelegateCommand command)
        {
            var sessionDelegate = delegateRepository.Find(command.SessionDelegateId);

            sessionDelegate.Update(command);
            delegateRepository.Update(sessionDelegate);
            delegateRepository.Save();
        }