// 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)); }
// 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)); }