Пример #1
0
        public void DeleteSnippet(Guid id, string userName)
        {
            _snippetRepository.Delete(id);

            _publisher.PublishAsync(new SnippetDeleted(id));
        }
Пример #2
0
 public async Task <bool> DeleteSnippet(Guid id)
 {
     return(await _repository.Delete(id));
 }
Пример #3
0
        public void RemoveSnippet(int id)
        {
            var snippet = snippetsRepository.GetById(id);

            snippetsRepository.Delete(snippet);
        }