public async Task <IActionResult> Products(int rn, int c) { if (rn * c <= 0) { return(BadRequest()); } var products = await _repo.Products(rn, c); if (products != null) { return(Ok(products)); } return(NotFound()); }