Exemplo n.º 1
0
        public async Task <IActionResult> SuggestionsByString(int stringId)
        {
            var suggestions = await _soStringsService.GetSuggestionsByString(stringId);

            var siteDomain = _configuration.GetValue <string>("STACKAPP_SITEDOMAIN");
            var str        = await _soStringsService.GetStringByIdAsync(stringId);

            var model = new SuggestionsByStringViewModel {
                SiteDomain = siteDomain, StringId = stringId, Suggestions = suggestions, String = str
            };

            return(View(model));
        }