public ActionResult index()
        {
            var ViewModel = new ProfissaoConsultaVM();

            ViewModel.montarLista();

            ViewModel.carregar();

            return(View(ViewModel));
        }
        public ActionResult listarAjax()
        {
            var ViewModel = new ProfissaoConsultaVM();

            ViewModel.montarLista();

            var query = ViewModel.listaProfissoes
                        .Select(x => new { value = x.id, text = x.descricao })
                        .OrderBy(x => x.text);

            var lista = query.ToList();

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