public MovimentationService(IProductRepository productRepository, IUserRepository userRepository,
                             IMovimentationRepository movimentationRepository, IInventoryService inventoryService, IMapper mapper)
 {
     this.productRepository       = productRepository;
     this.userRepository          = userRepository;
     this.movimentationRepository = movimentationRepository;
     this.inventoryService        = inventoryService;
     this.mapper = mapper;
 }
Пример #2
0
 public async Task <IList <MovimentationOutputModel> > GetMovimentations([FromServices] IMovimentationRepository movimentationRepository, CancellationToken cancellationToken)
 {
     return(mapper.Map <IList <MovimentationOutputModel> >(await movimentationRepository.GetMovimentations(cancellationToken)));
 }