基本信息
源码名称:mvc 三层架构 入门级示例源码
源码大小:24.68M
文件格式:.rar
开发语言:C#
更新时间:2016-03-09
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
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();
}
}
}