public JsonResult Listar() { var json = _serializationColecaSegmentosServices.Serialize(_segmentoAppService.ObterTodos()); return(Json(new { segmento = json }, JsonRequestBehavior.AllowGet)); }
private void PopularViewBag() { ViewBag.Segmento = new SelectList(_segmentoAppService.ObterTodos(), "SegmentoId", "Descricao"); }