示例#1
0
        public ActionResult TokenSetting(Config token)
        {
            Config config = new Config();

            var tokenvalue = (from r in db.Configs
                              where r.key == "Token"
                              select r).Single();
            tokenvalue.Value = token.Value;

            db.SaveChanges();

            return RedirectToAction("Index", new { token = token.Value });
        }
示例#2
0
 public ActionResult TokenSetting()
 {
     Config config = new Config();
     return View(config);
 }