public ActionResult Index() { if (!UsuarioLogado.Administrador) { return(RedirectToAction("Index", "Home")); } var empresas = _empresaDao.GetAll(true); return(View(empresas)); }
public static List <Empresa> GetAll() { try { List <Empresa> lista; List <EmpresaEntity> entities; entities = EmpresaDao.GetAll(); lista = EmpresaMapper.GetAll(entities); return(lista); } catch (Exception) { throw; } }
public List <Empresa> GetAllEmpresa(string conditions, string orders) { return(EmpresaDao.GetAll(conditions, orders)); }
public List <Empresa> GetAllEmpresa(string orders) { return(EmpresaDao.GetAll(orders)); }
public List <Empresa> GetAllEmpresa(Expression <Func <Empresa, bool> > criteria) { return(EmpresaDao.GetAll(criteria)); }
public List <Empresa> GetAllEmpresa() { return(EmpresaDao.GetAll()); }