public RoomTypePaginatedResponse GetPaginatedResponse(PaginatedRoomTypeRequest request)
        {
            var roomTypes = this.roomTypeRepository.GetPaginatedRoomTypes(
                request.Page,
                request.Search,
                request.Sort
                );

            /* SELECT COUNT(*) FROM roomTypes WHERE title LIKE '' ... */
            int count = this.roomTypeRepository.Count(request.Search);

            var response = new RoomTypePaginatedResponse(roomTypes, request.Page, count, this.roomTypeRepository.PerPage);

            return(response);
        }
        public ActionResult <RoomTypePaginatedResponse> GetAll([FromQuery] PaginatedRoomTypeRequest request)
        {
            var rt = this.roomTypeService.GetPaginatedResponse(request);

            return(Ok(rt));
        }