public IActionResult Index(string search) { List <Annonce> annonces = null; if (search != null) { annonces = Annonce.Search(search); } return(View()); }
public IActionResult Index(string search) { //ViewBag.Email = _login.GetEmail(); List <Annonce> annonces = null; if (search != null) { annonces = Annonce.Search(search); } return(View(annonces)); }