public dynamic Post(string id, ApiConfiguration model)
        {
            ApiConfiguration.Save(model);

            var webclient = new WebClient();
            webclient.OpenRead(ApiConfiguration.Current.QueryApiUrl + "/Home/Reload");
            return Ok();
        }
        public static void Save(ApiConfiguration configuration)
        {
            string json = JsonConvert.SerializeObject(configuration, Formatting.Indented);
            File.WriteAllText(Current.RepositoryRoot + "settings.json", json);

            // always assign repository root back (dont know another way?)
            configuration.RepositoryRoot = Current.RepositoryRoot;
            Current = configuration;
        }