public IndexViewModel(rest_api.Models.Tip[] tips) { _tipsViewModel = new TipsTableViewModel(tips); _pageTitle = "Random Tips"; _viewName = "index"; _jumboNavViewModel = new JumboNavViewModel(_viewName); }
public TagViewModel(rest_api.Models.Tip[] tips, string tag) { _tipsViewModel = new TipsTableViewModel(tips); _viewName = $"tag/{tag}"; _jumboNavViewModel = new JumboNavViewModel(_viewName); TextInfo textInfo = new CultureInfo("en-US", false).TextInfo; string tagTitle = textInfo.ToTitleCase(tag); _pageTitle = $"{tagTitle} Tips"; }
public SearchViewModel() { _pageTitle = "Search Tips"; _viewName = "search"; _jumboNavViewModel = new JumboNavViewModel(_viewName); }