コード例 #1
0
        public IActionResult WordSearch(string id)
        {
            if (String.IsNullOrEmpty(id))
            {
                return(View());
            }

            WordSearchViewModel wordSearch = new WordSearchViewModel();

            wordSearch.SearchedWord   = id;
            wordSearch.WordsToDisplay = _wordRepository.GetWordsContainingPart(id);

            return(View(wordSearch));
        }
コード例 #2
0
 public MainWindowViewModel()
 {
     WordSearchViewModel = new WordSearchViewModel();
     WordSaveViewModel   = new WordSaveViewModel();
 }