public ActionResult Index(long? page)
        {
            string url = "/Home/Index/page{0}";
            if (page == null)
            {
                page = 1;
            }
            homeindex model = new homeindex(QuestionRY, UserinfoRY, TagRY);

            var T1 = model.GetHomequestion(page.Value, 30);
            var T2 = model.SetQuestionForList(T1);
            T2 = model.SetQuestionUserForList(T2);
            var T3 = model.Settags();

            model.questionpage = T2;
            model.tags = T3;
            model.pageurl = url;

            #region seo部分
            model._pagetitle = "UnKnown Error";
            if (page > 1)
            {
                model._pagetitle = "UnKnown Error page "+page;
            }
            model._pagesysName = "home";
            #endregion
            return View(model);
        }
 public void Setup()
 {
     //  var routes = RouteTable.Routes;
     //   routes.Clear();
     //   WebRoutes.RegisterRoutes(routes);
     //   learnwebTDD.Core.SetUp_WindsorContainer.BootstrapContainer();
        QuestionRY = new DataRepository.DO.questionR();
        UserinfoRY = new DataRepository.DO.userinfoR();
        TagRY = new DataRepository.DO.tagR();
       Thomeindex = new homeindex(QuestionRY, UserinfoRY, TagRY);
 }