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(); }
public async Task <IEnumerable <VaccineInventory> > Handle(GetAllInventoryJoinVaccineQuery request, CancellationToken cancellationToken) { var model = await _inventoryRepository.GetAllInventoryJoinVaccine(); return(model); }