Example #1
0
        public static void updateShopNameDefault()
        {
            var path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "wwwroot" + "\\Data\\ShopName.json");
            var data = "";

            if (System.IO.File.Exists(path))
            {
                data = System.IO.File.ReadAllText(path);
            }
            shopName = JsonConvert.DeserializeObject <ShopNameModel>(data);
        }
Example #2
0
 public void updateLinkCallDefault([FromBody] ShopNameModel inparam)
 {
     UpdateFile(inparam, "LinkCall");
 }
Example #3
0
 public string updateShopNameDefault([FromBody] ShopNameModel inparam)
 {
     UpdateFile(inparam, "ShopName");
     Utils.updateShopNameDefault();
     return("true");
 }