Esempio n. 1
0
        public JsonResult Listar()
        {
            var json = _serializationColecaSegmentosServices.Serialize(_segmentoAppService.ObterTodos());

            return(Json(new { segmento = json }, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
 private void PopularViewBag()
 {
     ViewBag.Segmento = new SelectList(_segmentoAppService.ObterTodos(), "SegmentoId", "Descricao");
 }