예제 #1
0
        public async override Task <UpdatedOrderResultDto> Delete(OrderIdDto request, ServerCallContext context)
        {
            var result = await _orderApplication.DeleteOrderAsync(request.Id);

            return(new UpdatedOrderResultDto()
            {
                Count = result
            });
        }
예제 #2
0
        public async override Task <OrderDto> GetOrder(OrderIdDto request, ServerCallContext context)
        {
            var order = await _orderApplication.GetOrderAsync(request.Id);

            return(order.ToOrderDto());
        }
예제 #3
0
 public async Task <ActionResult <bool> > Delete(OrderIdDto orderDto)
 {
     return(await this.orderService.CancelOrderAsync(orderDto.OrderId));
 }