public void Handle(UpdateDelegateCommand command) { var sessionDelegate = delegateRepository.Find(command.SessionDelegateId); sessionDelegate.Update(command); delegateRepository.Update(sessionDelegate); delegateRepository.Save(); }
public void UpdateDelegate(DelegateData delegateData) { var sessionDelegate = delegateRepository.Find(delegateData.SessionDelegateId); sessionDelegate.Update(delegateData); delegateRepository.Update(sessionDelegate); delegateRepository.Save(); }