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