public async Task <IActionResult> SuggestionsByUser(int userId, StringSuggestionState?state) { var suggestions = await _soStringService.GetSuggestionsByUser(userId, state); var siteDomain = _configuration.GetValue <string>("STACKAPP_SITEDOMAIN"); var model = new SuggestionsByUserViewModel { CurrentState = state, SiteDomain = siteDomain, UserId = userId, Suggestions = suggestions }; return(View(model)); }
public async Task <IActionResult> GetSuggestionsByUser(int userId, StringSuggestionState?state) { return(Json(await _soStringService.GetSuggestionsByUser(userId, state))); }