示例#1
0
 //
 // GET: /Admin/
 public ActionResult Index()
 {
     DynamicDb db = new DynamicDb();
     //ViewBag.AllContent = db.RunQuery<Content>(DynamicDb.Db.Select, "Content", new string[]{}, cols: new string[]{"*"});
     ViewBag.AllLogs = db.RunQuery<Log>(DynamicDb.Db.Select, "Logger", new string[] { }, cols: new string[] { "*" });
     ViewBag.AllUsers = new List<User>() {
         new User() { Type = "Admin", UserId = 1, Username = "******" },
         new User() { Type = "Teacher", UserId = 2, Username = "******" },
         new User(){Type="Student", UserId = 3, Username = "******"}
     };
     return View();
 }