コード例 #1
0
ファイル: TopicBL.cs プロジェクト: LusineHovs/Forum
 public void Delete(int id)
 {
     topicRepo.DeleteTopic(id);
 }
コード例 #2
0
 public Topic DeleteTopic(int topicId)
 {
     return(_topicRepository.DeleteTopic(topicId));
 }
コード例 #3
0
ファイル: TopicsController.cs プロジェクト: zvjeverica/News
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            await Task.Run(() => _repository.DeleteTopic(id));

            return(RedirectToAction("Index"));
        }