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