public async Task <IActionResult> Index() { var model = await _service.NewestProperty(); if (model.Any()) { return(View(model)); } return(RedirectToAction("IndexNoProperties", "Home")); }
public async Task <IActionResult> Index() { var model = await _service.NewestProperty(); if (model.Any()) { return(View(model)); } return(RedirectToAction("IndexNoProperties", "Home")); }