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)); }
public MainWindowViewModel() { WordSearchViewModel = new WordSearchViewModel(); WordSaveViewModel = new WordSaveViewModel(); }