public JsonResult CreateMasterSetting(MasterSettingModel objSettingModel)
        {
            List <MasterSettingModel> MasterSettingModellist = new List <MasterSettingModel>();

            MasterSettingModellist.Add(objSettingModel);
            ListtoDataTableConverter converter = new ListtoDataTableConverter();
            DataTable dt = new DataTable();

            dt = converter.ToDataTable(MasterSettingModellist);

            homeModel hm  = new homeModel();
            string    res = "";

            try
            {
                res = admin_layer.CreateMasterSetting(dt);

                string[] response = res.Split(',');
                if (response[0] == "Success")
                {
                    hm.SuccessMsg = response[1];
                }
                else if (response[0] == "Error")
                {
                    hm.ErrorMsg = response[1];
                }
            }
            catch (Exception ex)
            {
                hm.ErrorMsg = ex.Message;
            }
            return(Json(hm, JsonRequestBehavior.AllowGet));
        }