public void UpdateAssetRoadworthyCertificateReminder(long organisationId, AssetRoadworthyCertificateReminder assetRoadworthyCertificateReminder) { IHttpRestRequest request = GetRequest(APIControllerRoutes.RemindersController.ASSETROADWORTHYREMINDERS, HttpMethod.Put); request.AddUrlSegment("organisationId", organisationId.ToString()); request.AddUrlSegment("assetId", assetRoadworthyCertificateReminder.AssetId.ToString()); request.AddJsonBody(assetRoadworthyCertificateReminder); Execute(request); }
public async Task UpdateAssetRoadworthyCertificateReminderAsync(long organisationId, AssetRoadworthyCertificateReminder assetRoadworthyCertificateReminder) { IHttpRestRequest request = GetRequest(APIControllerRoutes.RemindersController.ASSETROADWORTHYREMINDERS, HttpMethod.Put); request.AddUrlSegment("organisationId", organisationId.ToString()); request.AddUrlSegment("assetId", assetRoadworthyCertificateReminder.AssetId.ToString()); request.AddJsonBody(assetRoadworthyCertificateReminder); await ExecuteAsync(request).ConfigureAwait(false); }