Exemple #1
0
        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));
        }
Exemple #2
0
 public async Task <IActionResult> GetSuggestionsByUser(int userId, StringSuggestionState?state)
 {
     return(Json(await _soStringService.GetSuggestionsByUser(userId, state)));
 }