public async Task <ActionResult <IEnumerable <VaccineHistory> > > GetAllHistoryJoinPatientJoinInventory() { var query = new GetAllHistoryJoinPatientJoinInventoryQuery(); var result = await _mediator.Send(query); return(Ok(result)); }
public async Task <IEnumerable <VaccineHistory> > Handle(GetAllHistoryJoinPatientJoinInventoryQuery request, CancellationToken cancellationToken) { var model = await _historyRepository.GetAllHistoryJoinPatientJoinInventory(); return(model); }