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)); }
public async Task <IActionResult> MoveProductOtherWarehouse([FromBody] MoveProductCommand moveProductCommand) { var result = await _mediator.Send(moveProductCommand); return(Ok(result)); }