public async override Task <UpdatedOrderResultDto> Delete(OrderIdDto request, ServerCallContext context) { var result = await _orderApplication.DeleteOrderAsync(request.Id); return(new UpdatedOrderResultDto() { Count = result }); }
public async override Task <OrderDto> GetOrder(OrderIdDto request, ServerCallContext context) { var order = await _orderApplication.GetOrderAsync(request.Id); return(order.ToOrderDto()); }
public async Task <ActionResult <bool> > Delete(OrderIdDto orderDto) { return(await this.orderService.CancelOrderAsync(orderDto.OrderId)); }