// GET: /Art/Search?query=seu public ActionResult Search(string query) { //IRepository repo = new EFRepository(); var pm = new ArtManager(); var model = pm.GetByName(query); if (model == null) { return(HttpNotFound("Not Found...")); } return(View("Display", model)); }