Exemplo n.º 1
0
        public ActionResult <IEnumerable <MenuInfo> > GetAllMenus()
        {
            SystemBusiness _SystemBusiness = new SystemBusiness();

            List <MenuInfo> itemList = new List <MenuInfo>();

            itemList = _SystemBusiness.GetAllEntitys <MenuInfo>();

            return(itemList);
        }
Exemplo n.º 2
0
        public ActionResult <IEnumerable <RoleInfo> > GetAllRoleInfos()
        {
            SystemBusiness _SysInfoBusiness = new SystemBusiness();

            List <RoleInfo> itemList = new List <RoleInfo>();

            itemList = _SysInfoBusiness.GetAllEntitys <RoleInfo>();

            return(itemList);
        }