Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
using AlloySampleSite.Controllers;
using AlloySampleSite.Models.Pages;
using AlloySampleSite.Models.ViewModels;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
namespace AlloySampleSite.Controllers
{
    public class SearchPageController : PageControllerBase<SearchPage>
    {
        public ViewResult Index(SearchPage currentPage, string q)
        {
            var model = new SearchContentModel(currentPage)
            {
                Hits = Enumerable.Empty<SearchContentModel.SearchHit>(),
                NumberOfHits = 0,
                SearchServiceDisabled = true,
                SearchedQuery = q
            };
            return View(model);
        }
    }
}
                        
    
    
    
Hi,
I'm trying to create a page for that I need to use build in SearchPageController.cs but it is missing from controllers folder of the project.
Please help me to resolve this issue.