public ActionResult Index(string NextQuestion) { var latest = new QuestionAndAnswer { Question = NextQuestion, Answer = AnswerGenerator.GenerateAnswer(NextQuestion) }; allAnswers.Insert(0, latest); return(View(allAnswers)); }
public ActionResult Index(string NextQuestion) { ViewBag.CustomerName = CMConfiguration.CustomerName; ViewBag.LogoUrl = CMConfiguration.LogoUrl; ViewBag.DbName = CMConfiguration.DbName; ViewBag.Version = CMConfiguration.Version; var latest = new QuestionAndAnswer { Question = NextQuestion, Answer = AnswerGenerator.GenerateAnswer(NextQuestion) }; allAnswers.Insert(0, latest); return(View(allAnswers)); }