Пример #1
0
        // GET: Integracao
        public ActionResult Index()
        {
            var user = HttpContext.Session["Usuario"];

            if (user == null)
            {
                return(RedirectToAction("Login", "Login"));
            }

            var organismos = _servico.BuscarTodos().
                             Where(s => s.IntegracaoInfo != null).
                             Select(s => s.IntegracaoInfo).
                             OrderBy(s => s.DiretorioInspecaoLocal).
                             ToList();

            return(View(organismos));
        }
Пример #2
0
        // GET: Organismo
        public ActionResult Index()
        {
            var user = HttpContext.Session["Usuario"];

            if (user == null)
            {
                return(RedirectToAction("Login", "Login"));
            }
            var organismos = _servico.BuscarTodos();

            //var convertido = Conversao.Converter.ConverterParaModelo(organismos);
            return(View(organismos));
        }