/// <summary> /// Update Location /// </summary> /// <remarks> /// Updates the business location with the specified ID. /// </remarks> public Task UpdateLocationAsync(int businessId, int id, UkLocationModel location, CancellationToken cancellationToken = default) { return(ApiRequestAsync($"/business/{businessId}/location/{id}", location, Method.PUT, cancellationToken)); }
/// <summary> /// Create Location /// </summary> /// <remarks> /// Creates a business location. /// </remarks> public Task <UkLocationModel> CreateLocationAsync(int businessId, UkLocationModel location, CancellationToken cancellationToken = default) { return(ApiRequestAsync <UkLocationModel, UkLocationModel>($"/business/{businessId}/location", location, Method.POST, cancellationToken)); }
/// <summary> /// Update Location /// </summary> /// <remarks> /// Updates the business location with the specified ID. /// </remarks> public void UpdateLocation(int businessId, int id, UkLocationModel location) { ApiRequest($"/business/{businessId}/location/{id}", location, Method.PUT); }
/// <summary> /// Create Location /// </summary> /// <remarks> /// Creates a business location. /// </remarks> public UkLocationModel CreateLocation(int businessId, UkLocationModel location) { return(ApiRequest <UkLocationModel, UkLocationModel>($"/business/{businessId}/location", location, Method.POST)); }