using MvcTest.Models;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcTest.Controllers{ public class HomeController : Controller { public ActionResult Index() { TextBll.Bll_Exam exam = new TextBll.Bll_Exam(); List<user_exam> list = Common.DataTableConvertHelper<user_exam>.ConvertToList(exam.getUserExamList("9F4E637C-7578-4E74-AE78-A4CA00DF2C24")) .Select(p => new user_exam() { Exam_ids=HYENCRYPT.EncryptCSharp.Encrypt(p.exam_id.ToString()), exam_name=p.exam_name, exam_score=p.exam_score, exam_start_time=p.exam_start_time, examstate=p.examstate, exam_end_time=p.exam_end_time, passMark_score=p.passMark_score, exam_time=p.exam_time }).ToList(); return View(list); } public ActionResult About() { ViewBag.Message = "Your application description page."; return View(); } public ActionResult Contact() { ViewBag.Message = "Your contact page."; return View(); } public ActionResult ExamScore(string name, string score,string exam_id) { ViewBag.name = HYENCRYPT.EncryptCSharp.Decrypt(name); ViewBag.score = HYENCRYPT.EncryptCSharp.Decrypt(score); return View(); } }}
评论