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