示例#1
0
        public List <RoleMenuDto> GetAllRoleMenus()
        {
            string tkey = CacheKeyName.RoleMenuKey;

            return(_cacheService.Cached.Get <List <RoleMenuDto> >(() => { return Mapper.Map <List <RoleMenuDto> >(_repositoryRead.GetAllRoleMenus()); }, tkey, default(TimeSpan)));
        }
示例#2
0
 private List <RoleMenuDto> GetAllRoleMenus()
 {
     return(_cacheService.Cached.Get <List <RoleMenuDto> >(() => { return Mapper.Map <List <RoleMenuDto> >(_rolerepositoryread.GetAllRoleMenus()); }, CacheKeyName.RoleMenuKey, default(TimeSpan)));
 }