예제 #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);
        }