示例#1
0
        //
        // GET: /Home/
        //public ActionResult Index()
        //{
        //    return View();
        //}
        public ActionResult Home()
        {
            Response.Write("<!DOCTYPE html>");
            var doc = new DefaultDocument()
            {
                PageView = new Home_Page().ToHtml()
            };

            return Content(doc.ToHtml().ToString());
        }
示例#2
0
        //
        // GET: /Admin/
        public ActionResult Index(string msg)
        {
            var doc = new DefaultDocument()
            {
                PageView = (new Admin_Page() { Msg = msg }).ToHtml()
            };

            return
            Content(doc.ToHtml().ToString());
        }
        public ActionResult MyProgress()
        {
            Response.Write("<!DOCTYPE html>");
            var doc = new DefaultDocument()
            {
                PageView = new Progress_Page().ToHtml()
            };

            doc.Scripts.Add("Content/Scripts/ProgressChart.js");
            return Content(doc.ToHtml().ToString());
        }
示例#4
0
        public ActionResult Register()
        {
            Response.Write("<!DOCTYPE html>");

            var doc = new DefaultDocument()
            {
                PageView = new Register_Page().ToHtml()
            };

            doc.Scripts.Add("Content/Scripts/Register.js");

            return Content(doc.ToHtml().ToString());
        }
示例#5
0
        public ActionResult SignIn()
        {
            //var model = new SignIn_Model();
            //model.CheckUserCredentials();

            Response.Write("<!DOCTYPE html>");
            var doc = new DefaultDocument()
            {
                PageView = new SignIn_Page().ToHtml()
            };

            doc.Scripts.Add("Content/Scripts/SignIn.js");
            return Content(doc.ToHtml().ToString());
        }
示例#6
0
        public ActionResult UserPerformance()
        {
            var model = new UserPerformance_Page_Model();
            model.Init();
            model.Load();

            var doc = new DefaultDocument()
            {
                PageView = (new UserPerformance_Page() { Model = model}).ToHtml()
            };

            doc.Scripts.Add("Content/Scripts/AdminUserPerformance.js");

            return
            Content(doc.ToHtml().ToString());
        }