public void UpdateRecord(LoyaltyCardModel model)
        {
            var allData     = Helper.ReadDataFromJson <LoyaltyCardModel>(pathFile);
            var updateModel = allData.Find(x => x.ID == model.ID);

            updateModel = model;
            Helper.SaveDataToJson(pathFile, allData);
        }
        public void SaveToDatabase(LoyaltyCardModel model)
        {
            //do save to db
            var allData = Helper.ReadDataFromJson <LoyaltyCardModel>(pathFile);

            allData.Add(model);
            Helper.SaveDataToJson(pathFile, allData);
        }