public HttpStatusCode Config([FromForm] ConfigModel config) { try { IList <Config> configs = new List <Config>(); configs.Add(new Config { Key = "ProxyUpdateInterval", Value = config.UpdateInterval.ToString() }); configs.Add(new Config { Key = "ProxyDeleteInterval", Value = config.DeleteInterval.ToString() }); _configService.BatchUpdate(configs); return(HttpStatusCode.OK); } catch { return(HttpStatusCode.InternalServerError); } }