BikeHistoryDataControllerChangeAddress Method |
Namespace: Velo.Web.Controllers
var lURL = getURLRoot() + 'api/BikeHistoryData/ChangeAddress/' + BikeHistoryID + "," + DialogAddressListAddressID; // asynchronous post - waiting next processing $.ajax({ url: lURL, type: 'POST', async: false, success: function (data) { // "data" has regular exception message from web API data controller if (data.length > 0) { alert(data); } BikeHistoryAddressesByBike(BikeHistoryBikeID); // bike table refresh }, error: function (jqXHR, textStatus, errorThrown) { alert(textStatus + ": " + errorThrown); BikeHistoryAddressesByBike(BikeHistoryBikeID); // bike table refresh } });