working totalResults and currentPage on the API

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2023-10-03 10:29:41 +02:00
parent d4b53e9912
commit 187c669495
4 changed files with 12 additions and 7 deletions

View file

@ -71,7 +71,7 @@ public class MovieController: ControllerBase
return StatusCode(204, "No Content");
}
MovieResponse Response = new MovieResponse("OK", resultTake.Count(), resultTake);
MovieResponse Response = new MovieResponse("OK", totalMovies, pageNumber ,resultTake);
return Ok(Response);
}