public void DeleteSnippet(Guid id, string userName) { _snippetRepository.Delete(id); _publisher.PublishAsync(new SnippetDeleted(id)); }
public async Task <bool> DeleteSnippet(Guid id) { return(await _repository.Delete(id)); }
public void RemoveSnippet(int id) { var snippet = snippetsRepository.GetById(id); snippetsRepository.Delete(snippet); }