找传奇、传世资源到传世资源站!

mvc 三层架构 入门级示例源码

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

mvc 三层架构 入门级示例源码 C#语言基础-第1张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(); } }}

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复