Click or drag to resize

BikeHistoryDataControllerChangeBike Method

Change bike by bike history

Namespace:  Velo.Web.Controllers
Assembly:  Velo.Web (in Velo.Web.dll) Version: 22.2.10.1 (22.2.10.450)
Syntax
public string ChangeBike(
	string pID
)

Parameters

pID
Type: SystemString
Parameter syntax: [bike history ID], [bike ID]

Return Value

Type: String
Exception message
Examples
This example call from Java script
var lURL = getURLRoot() + 'api/BikeHistoryData/ChangeBike/' + BikeHistoryID + "," + DialogBikeListBikeID;

// 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);
        }
        BikeHistoryBikesByAddress(BikeHistoryAddressID);    // bike table refresh
    },
    error: function (jqXHR, textStatus, errorThrown) {
        alert(textStatus + ": " + errorThrown);
        BikeHistoryBikesByAddress(BikeHistoryAddressID);    // bike table refresh
    }
});
See Also