예제 #1
0
        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));
        }
예제 #2
0
        public async Task <IActionResult> UpdatePriceAsync([FromBody] UpdatePriceRequest request)
        {
            await _service.UpdatePriceAsync(User.GetUserId(), request.Price);

            return(NoContent());
        }