public void Delete(int id) { topicRepo.DeleteTopic(id); }
public Topic DeleteTopic(int topicId) { return(_topicRepository.DeleteTopic(topicId)); }
public async Task <IActionResult> DeleteConfirmed(int id) { await Task.Run(() => _repository.DeleteTopic(id)); return(RedirectToAction("Index")); }