public ActionResult GlobalConfig(GlobalConfig config) { var username = validate.Validate_Token(Request.Cookies["Jwtoken"]); if (!string.IsNullOrEmpty(username)) { //save configuration _manager.SaveConfig(username, config); return(RedirectToAction("Index", new { config = config })); } return(RedirectToAction("Login")); }