Exemplo n.º 1
0
        public async Task <ApiResponse <IEnumerable <MoveProductsDto> > > Handle(MoveProductCommand request, CancellationToken cancellationToken)
        {
            var moveProduct = _mapper.Map <MoveProducts>(request);
            var result      = await _movementService.MoveProductOtherWarehouse(moveProduct);

            var movemenstDto = _mapper.Map <IEnumerable <MoveProductsDto> >(result);

            return(new ApiResponse <IEnumerable <MoveProductsDto> >(movemenstDto));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> MoveProductOtherWarehouse([FromBody] MoveProductCommand moveProductCommand)
        {
            var result = await _mediator.Send(moveProductCommand);

            return(Ok(result));
        }