Esempio n. 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 });
        }
Esempio n. 2
0
 public ActionResult TokenSetting()
 {
     Config config = new Config();
     return View(config);
 }