public JsonResult ListarTopicoPesquisa(string pesquisa) { TopicoBLL topicoBll = new TopicoBLL(); List <Topico> topico = new List <Topico>(); topico = topicoBll.ListarTopico(pesquisa); return(Json(topico, JsonRequestBehavior.AllowGet)); }
public ActionResult ListarTopico() { TopicoBLL topicoBll = new TopicoBLL(); List <Topico> topico = new List <Topico>(); topico = topicoBll.ListarTopico(); return(Json(topico, JsonRequestBehavior.AllowGet)); }
public IEnumerable <Topico> ListarTopico() { TopicoBLL topicoBll = new TopicoBLL(); return(topicoBll.ListarTopico()); }