public string Pesquisar(string q, string e, string g, string a, string h) { if (!string.IsNullOrEmpty(q)) { try { return(Pesquisa.Pesquisar(Server.UrlDecode(q), Server.UrlDecode(e), Server.UrlDecode(g), Server.UrlDecode(a), Server.UrlDecode(h))); } catch { } } return(string.Empty); }
public void Pequisar() { if (pesquisa.PodePesquisar(perfilSelecionado.perfil)) { perfilSelecionado.perfil.verba -= pesquisa.custoDinheiro; perfilSelecionado.perfil.pontosPesquisa -= pesquisa.custoPontosPesquisa; // TODO(andre:2018-07-02): Fazer com que a pesquisa consuma tempo de algum funcionário // Primeiro é necessario fazer com que seja possivel selecionar um funcionário pesquisa.Pesquisar(); eventoPesquisar.Invoke(); } }
public ActionResult Resultados(string q, string e, string g, string a, string h) { if (this.BaseUsuario != null) { this.Usuario = new UsuarioVM(this.BaseUsuario); ViewBag.Usuario = this.Usuario; } if (!string.IsNullOrEmpty(q)) { try { ViewBag.JSON = Pesquisa.Pesquisar(Server.UrlDecode(q), Server.UrlDecode(e), Server.UrlDecode(g), Server.UrlDecode(a), Server.UrlDecode(h)); return(View()); } catch { } } return(Redirect("/inicio/")); }