// GET: Property public async Task <ActionResult> Index(int?categoryId) { var properties = await _categoryService.GetProperties(categoryId); return(View(properties)); }