public BaseItemRes <InitDataInfo> Test() { var userDAL = new UserDAL(); var lstUser = userDAL.AsQueryable().ToList(); var roleDAL = new RoleDAL(); var lstRole = roleDAL.AsQueryable().ToList(); var authorityDAL = new AuthorityDAL(); var lstAuthority = authorityDAL.AsQueryable().ToList(); var roleAuthorityDAL = new RoleAuthorityDAL(); var lstRoleAuthority = roleAuthorityDAL.AsQueryable().ToList(); var userRoleDAL = new UserRoleDAL(); var lstUserRole = userRoleDAL.AsQueryable().ToList(); var initData = new InitDataInfo() { Users = lstUser, Roles = lstRole, Authoritys = lstAuthority, RoleAuthoritys = lstRoleAuthority, UserRoles = lstUserRole }; return(BaseItemRes <InitDataInfo> .Ok(initData)); }