// GET: Cliente/Create public ActionResult Create() { var tipoClassificao = from TipoClassificacao e in Enum.GetValues(typeof(TipoClassificacao)) select new { Id = (char)e, Descricao = e.ToString() }; ViewBag.TipoClassificaçao = new SelectList(tipoClassificao, "ID", "Descricao"); ViewBag.Segmentos = new SelectList(ISegmentoData.ListarSegmentos(), "ID_SEGMENTO", "DESCRICAO"); return(View()); }
// GET: Segmento public ActionResult Index() { var segmentos = ISegementoData.ListarSegmentos(); return(View(segmentos)); }