I think you should create an IndexViewModel
class
public class IndexViewModel
{
public int? NeighbourhoodId { get; set; }
public int? AccomodationType { get; set; }
}
Then add @model IndexViewModel
to the top of your view
It seems that neigbourhoodId
and accomodationType
come from dropdowns, so map viewModel properties to those dropdowns
and then the controller method will be somehting like this:
public ActionResult Index(string page, IndexViewModel model)
{
// You can use model.NeighbourhoodId and model.AccomodationType the same way you did with parameters
}