Example #1
0
 /// <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));
 }
Example #2
0
 /// <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));
 }
Example #3
0
 /// <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);
 }
Example #4
0
 /// <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));
 }