public async Task <IActionResult> SuggestQuestion(SuggestQuestionBindingModel questionSuggestion, string username) { var suggestQuestion = mapper.Map <QuestionSuggestion>(questionSuggestion); await this.questionSuggestionService.SuggestQuestion(suggestQuestion, this.User.Identity.Name); return(RedirectToAction("Index", "Home")); }
public async Task <IActionResult> SuggestQuestion(SuggestQuestionBindingModel questionSuggestion, string username) { var suggestQuestion = mapper.Map <QuestionSuggestion>(questionSuggestion); await this.questionSuggestionService.SuggestQuestion(suggestQuestion, this.User.Identity.Name); await notificationHubContext.Clients.All.SendAsync("sendNotification"); return(RedirectToAction("Index", "Home")); }