public async Task <ActionResult <IEnumerable <VaccineInventory> > > GetAllInventoryJoinVaccine()
        {
            var query  = new GetAllInventoryJoinVaccineQuery();
            var result = await _mediator.Send(query);

            return(Ok(result));
            //return await _context.VaccineInventories.ToListAsync();
        }
Esempio n. 2
0
        public async Task <IEnumerable <VaccineInventory> > Handle(GetAllInventoryJoinVaccineQuery request, CancellationToken cancellationToken)
        {
            var model = await _inventoryRepository.GetAllInventoryJoinVaccine();

            return(model);
        }