public OrcamentoController()
 {
     _servico            = new OrcamentoServico();
     _moduloServico      = new ModuloServico();
     _produtoServico     = new ProdutoServico();
     _orcamentoViewModel = new OrcamentoViewModel();
 }
示例#2
0
        public ActionResult ListarModulos(string term)
        {
            var servico = new ModuloServico();
            var modulos = servico.Listar(term);

            var result = new
            {
                results = modulos.Select(x => new
                {
                    id   = x.Id.ToString(),
                    text = x.Nome
                })
            };

            return(Json(result, JsonRequestBehavior.AllowGet));
        }