public JsonResult GetImoveis(ImovelSearch filter)
        {
            filter = filter ?? new ImovelSearch();
            var result = filter.Query(db).ToList().Select(x => new ImovelView(x)).ToList();

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
 public ActionResult Search(ImovelSearch filter)
 {
     return(View(filter ?? new ImovelSearch()));
 }