// POST api/SystemDefaultsValues
        public HttpResponseMessage PostValue(DefaultValues[] values)
        {
            HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);

            base.SetParamsAndSettings();
            ConfigurationModel model           = new ConfigurationModel(settings);
            string             result          = string.Empty;
            List <RequestData> requestDataList = GetRequestDataList(values);

            model.Initialise(requestDataList);
            bool isValid = model.Validate();

            if (isValid)
            {
                model.Save();
                model.Initialise();
            }
            else
            {
                model.SetTabWithErrorActive();
            }
            if (model.RedirectURL == string.Empty)
            {
                result = ViewRenderer.RenderView("~/Views/SystemDefaults/Configuration.cshtml", model, null);
            }
            else
            {
                result = "returnURL=" + model.RedirectURL;
            }
            response.Content = new StringContent(result);
            response.Content.Headers.ContentType = new MediaTypeHeaderValue("text/html");
            return(response);
        }