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