Example #1
0
        public ActionResult FindClassHistory(int classid)
        {
            var findclassname = HistoryManage.FindClassHistory(classid).Take(1);
            var findclass     = HistoryManage.FindClassHistory(classid);

            ViewModels.Historys index = new ViewModels.Historys();
            index.FindClassHistory = findclass;
            index.FindClassName    = findclassname;
            return(View(index));
        }
Example #2
0
        public ActionResult HistoryDetail(int id, int classid)
        {
            var detail  = HistoryManage.HistoryDetail(id);
            var classvd = HistoryManage.FindClassHistory(classid).Take(5);

            ViewModels.Historys index = new ViewModels.Historys();
            index.HistoryDetail    = detail;
            index.FindClassHistory = classvd;
            return(View(index));
        }