Exemple #1
0
 public async Task RemoveSysNavRole(Guid id)
 {
     using (var sysNavRoleDao = new SysNavRoleDao())
     {
         await sysNavRoleDao.RemoveAsync(id);
     }
 }
Exemple #2
0
 public async Task <List <SysNavRole> > GetSysNavRole(Guid[] sysRoleId)
 {
     using (var sysNavRoleDao = new SysNavRoleDao())
     {
         //返回主键实体
         return(await sysNavRoleDao.GetNavRoles(sysRoleId));
     }
 }
Exemple #3
0
 public object GetSysNavRole()
 {
     using (var sysNavRoleDao = new SysNavRoleDao())
     {
         //返回主键实体
         return(sysNavRoleDao.GetNavRoles());
     }
 }
Exemple #4
0
 public List <SysNavRole> GetHomeNavRoles(Guid[] sysRoleId)
 {
     using (var sysNavRoleDao = new SysNavRoleDao())
     {
         //返回主键实体
         return(sysNavRoleDao.GetHomeNavRoles(sysRoleId));
     }
 }
Exemple #5
0
 public async Task <List <SysNavRole> > GetSysNavItemOneById(Guid roleId)
 {
     using (var sysNavRoleDao = new SysNavRoleDao())
     {
         return(await sysNavRoleDao.GetAllAsync()
                .Where(m => m.Id == roleId)
                .Include(m => m.SysNavItem).ToListAsync());
     }
 }
Exemple #6
0
        public List <SysNavRole> GetSysNavRole()
        {
            using (var sysNavRoleDao = new SysNavRoleDao())
            {
                var list = sysNavRoleDao.GetNavRoles();

                //返回主键实体
                return(sysNavRoleDao.GetNavRoles());
            }
        }
Exemple #7
0
 public async Task CreateSysNavRole(Guid roleId, Guid navItemId)
 {
     using (var sysNavRoleDao = new SysNavRoleDao())
     {
         var model = new SysNavRole()
         {
             NavItemId  = navItemId,
             RoleId     = roleId,
             CreateTime = DateTime.Now
         };
         await sysNavRoleDao.CreateAsync(model);
     }
 }