public ActionResult SearchByCategory(int id) { var data = new DataAccess(); var model = new IndexModel() { Lots = data.SearchLotBuCategoryId(id) }; return View("Index", model); }