Example #1
0
        public async Task <IActionResult> UpdateRecords()
        {
            var model = await _api.GetRecordAsync <AddressModel>("Addresses", 935752);

            model.Address_Line_1 = "Updated Address Line 1";

            List <AddressModel> recordUpdates = new List <AddressModel>();

            recordUpdates.Add(model);

            var addressUpdates = await _api.UpdateRecordsAsync <AddressModel>("Addresses", recordUpdates);

            return(View(addressUpdates));
        }