Ejemplo n.º 1
0
        public async Task DeleteAsync(Guid id)
        {
            var speaker = await _speakersRepository.Get(id);

            if (speaker is null)
            {
                throw new SpeakerNotFoundException(id);
            }

            _speakersRepository.Delete(speaker);
            await _speakersRepository.UnitOfWork.SaveChangesAsync();
        }
Ejemplo n.º 2
0
 public void DeleteSpeaker(Speakers speakers)
 {
     speakersRepository.Delete(speakers);
 }
 public void Delete(Speakers speakerToDelete)
 {
     speakersRepository.Delete(speakerToDelete);
 }