Exemple #1
0
        // Control the view of main page after loading
        public ActionResult Index()
        {
            try
            {
                NewModel model = new NewModel();

                // Reset the chat box history to be empty
                manager.CleanHistory();
                model.history = manager.GetQuestionHistory();

                return(View(model));
            }
            catch (Exception e)
            {
                return(View("Error", new HandleErrorInfo(e, "Home", "Index")));
            }
        }