public ActionResult <IEnumerable <MenuInfo> > GetAllMenus() { SystemBusiness _SystemBusiness = new SystemBusiness(); List <MenuInfo> itemList = new List <MenuInfo>(); itemList = _SystemBusiness.GetAllEntitys <MenuInfo>(); return(itemList); }
public ActionResult <IEnumerable <RoleInfo> > GetAllRoleInfos() { SystemBusiness _SysInfoBusiness = new SystemBusiness(); List <RoleInfo> itemList = new List <RoleInfo>(); itemList = _SysInfoBusiness.GetAllEntitys <RoleInfo>(); return(itemList); }