Example #1
0
        public ActionResult Index()
        {
            ViewBag.Origem = new Origem().Lista(null);
            ViewBag.Origem.Insert(0, new OrigemModel() { Id = 0, Nome = "" });
            ViewBag.Profissao = new Profissao().Lista(null);
            ViewBag.Profissao.Insert(0, new ProfissaoModel() { Id = 0, Nome = "" });

            Dictionary<int, string> lista = new Dictionary<int, string>();
            lista.Add(0, "");
            lista.Add(1, "Sim");
            lista.Add(2, "Não");
            ViewBag.SimNaoTodos = lista;

            PF pfData = new PF();
            List<PFModel> model = pfData.Filtro50(null, null, null, null, null);

            return View(model);
        }