public async Task <ActionResult <ListModel <TransfusionProductDetailModel> > > GetAll([FromQuery] GetTransfusionProductDetailsListQuery request) { return(Ok(await Mediator.Send(request))); }
public async Task <ListModel <TransfusionProductDetailModel> > Handle(GetTransfusionProductDetailsListQuery request, CancellationToken cancellationToken) { var defaultSort = BuildSortList <TransfusionProductDetail>(i => i.TransfusionProductDetailId); return(await RetrieveListResults <TransfusionProductDetail, TransfusionProductDetailModel>(null, defaultSort, request, cancellationToken)); }