public ActionResult <Movie> GetMoviesByCategory(int category, int?page, int?pageSize) { if (category <= 0 || (page ?? 1) <= 0 || (pageSize ?? 1) <= 0) { return(BadRequest()); } return(Ok(_catalogSearchService.GetNonAdultMoviesByCategory(category, page, pageSize))); }