Beispiel #1
0
 public async Task <List <ProductViewModel> > GetAll()
 {
     return(ProductViewModel.GetFromProducts(await _productQueryRepository.GetAll()));
 }
Beispiel #2
0
 // GET: AsyncTest
 public async Task <ActionResult> Index()
 {
     return(View(await _productQueryRepository.GetAll()));
 }
 public IActionResult Get([FromServices] IProductQueryRepository productQueryRepository)
 {
     return(Ok(productQueryRepository.GetAll()));
 }