Beispiel #1
0
        public bool RemoveWordsDeletedInAdminPanel(List <WordPairForDataGridView> deletedWordPairsForDataGridView)
        {
            IEnumerable <int> wordPairIdsToRemove = deletedWordPairsForDataGridView.Select(dw => dw.Id);

            int removedWordPairsCount = _wordsRepository.RemoveAllWordsByIds(wordPairIdsToRemove);

            return(removedWordPairsCount == deletedWordPairsForDataGridView.Count);
        }