Exemple #1
0
 public async Task <ProductEntity> GetById(int productId)
 {
     // TODO: [TESTS] (ProductRepo.GetById) Add tests
     return(await GetSingle <ProductEntity>(
                nameof(GetById),
                _queries.GetById(),
                new { ProductId = productId }
                ));
 }
Exemple #2
0
 public async Task OnGetAsync(int id)
 {
     Product = (await _productQueries.GetById(id)).ToEditProduct();
 }