public void RemoveSpeaker(string communityId, string talkDraftId, string speakerId) { try { var draftKey = new TalkKey(communityId, talkDraftId); _draftTalkService.RemoveSpeaker(draftKey, speakerId); } catch (Exception ex) { if (ex is DomainException) { throw; } throw new UnexpectedException("Remove speaker failed.", ex); } }
public TalkDraft(TalkKey key) { Key = key ?? throw new ArgumentNullException(nameof(key)); Speakers = new List <SpeakerReference>(); Rehearsals = new List <TalkRehearsal>(); }
/// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" /> /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" /> public TalkDraft GetEntity(TalkKey id) { throw new System.NotImplementedException(); }
/// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" /> /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" /> /// <exception cref="Domain.Contract.Exceptions.SpeakerNotFoundException" /> public void RemoveSpeaker(TalkKey key, string speakerId) { throw new System.NotImplementedException(); }
/// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" /> /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" /> public void Delete(TalkKey id) { throw new System.NotImplementedException(); }
public TalkRehearsalKey(TalkKey talkDraftKey, string id) { TalkKey = talkDraftKey ?? throw new ArgumentNullException(nameof(talkDraftKey)); Id = id ?? throw new ArgumentNullException(nameof(id)); }
/// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" /> /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" /> /// <exception cref="Domain.Contract.Exceptions.SpeakerNotFoundException" /> public EntityReference AddSpeaker(TalkKey key, string speakerId) { throw new System.NotImplementedException(); }
public TalkRehearsal AddRehearsal(TalkKey key, string comments, DateTimeOffset time) { return(_talkRehearsalRepository.Add(key, comments, time)); }
public void UpdateRehearsal(TalkKey key, TalkRehearsal rehearsal) { _talkRehearsalRepository.Update(rehearsal); }
public void RemoveSpeaker(TalkKey key, string speakerId) { _talkDraftRepository.RemoveSpeaker(key, speakerId); }
public SpeakerReference AddSpeaker(TalkKey key, string speakerDraftId) { return(_talkDraftRepository.AddSpeaker(key, speakerDraftId)); }
public void DeleteTalkDraft(TalkKey key) { _talkDraftRepository.Delete(key); }
public TalkDraft GetTalkDraft(TalkKey key) { return(_talkDraftRepository.GetEntity(key)); }
/// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" /> /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" /> /// <exception cref="Domain.Contract.Exceptions.SpeakerNotFoundException" /> public TalkRehearsal Add(TalkKey key, string comments, DateTimeOffset time) { throw new NotImplementedException(); }