public async Task RemoveSysNavRole(Guid id) { using (var sysNavRoleDao = new SysNavRoleDao()) { await sysNavRoleDao.RemoveAsync(id); } }
public async Task <List <SysNavRole> > GetSysNavRole(Guid[] sysRoleId) { using (var sysNavRoleDao = new SysNavRoleDao()) { //返回主键实体 return(await sysNavRoleDao.GetNavRoles(sysRoleId)); } }
public object GetSysNavRole() { using (var sysNavRoleDao = new SysNavRoleDao()) { //返回主键实体 return(sysNavRoleDao.GetNavRoles()); } }
public List <SysNavRole> GetHomeNavRoles(Guid[] sysRoleId) { using (var sysNavRoleDao = new SysNavRoleDao()) { //返回主键实体 return(sysNavRoleDao.GetHomeNavRoles(sysRoleId)); } }
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()); } }
public List <SysNavRole> GetSysNavRole() { using (var sysNavRoleDao = new SysNavRoleDao()) { var list = sysNavRoleDao.GetNavRoles(); //返回主键实体 return(sysNavRoleDao.GetNavRoles()); } }
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); } }