Esempio n. 1
0
        //查看已发布的问题
        public ActionResult MyPublish()
        {
            MyPublishModel model = new MyPublishModel();

            UserDao     userdao     = new UserDao();
            User        user        = userdao.getById(int.Parse(Request.Cookies["Menber"].Values["ID"]));
            QuestionDao questiondao = new QuestionDao();

            model.questions = questiondao.getByUser(user);

            TypeDao typedao = new TypeDao();

            model.types = typedao.getTypeList();

            return(View(model));
        }