public LookupData LoadLookup(bool orderByKey) { IUserGroupDAO dao = DAOFactory.CreateUserGroupDAO(CommonLib.Common.CurrentDatabase); List <UserGroupDTO> dtos = dao.LoadAll(null, orderByKey); return(new LookupData(DTOUtility.ConvertListToDataTable(dtos), UserGroupDTO.eColumns.GROUP_NAME.ToString(), UserGroupDTO.eColumns.GROUP_CD.ToString())); }
public List <UserGroupDTO> LoadAllGroup() { IUserGroupDAO dao = DAOFactory.CreateUserGroupDAO(CommonLib.Common.CurrentDatabase); return(dao.LoadAll(null)); }