public IActionResult GetAwards([FromQuery] string q, [FromQuery] int page) { var(awards, totalCount) = _filmService.GetAwardsByNamePaginated(q, page); return(new ObjectResult(new PaginatedResponse <Award> { Count = awards.Count(), Data = awards.ToList(), PageSize = FilmService.PageSize, TotalCount = totalCount })); }