public async Task <IActionResult> PutAsync([FromBody] UpdatePriceRequest request) { var response = await this.consumerFactory .CreateConsumer <UpdatePriceRequest, UpdatePriceResponse>() .ProcessAsync(request) .ConfigureAwait(false); return(this.Ok(response.Entity)); }
public async Task <IActionResult> UpdatePriceAsync([FromBody] UpdatePriceRequest request) { await _service.UpdatePriceAsync(User.GetUserId(), request.Price); return(NoContent()); }