public List <RoleMenuDto> GetAllRoleMenus() { string tkey = CacheKeyName.RoleMenuKey; return(_cacheService.Cached.Get <List <RoleMenuDto> >(() => { return Mapper.Map <List <RoleMenuDto> >(_repositoryRead.GetAllRoleMenus()); }, tkey, default(TimeSpan))); }
private List <RoleMenuDto> GetAllRoleMenus() { return(_cacheService.Cached.Get <List <RoleMenuDto> >(() => { return Mapper.Map <List <RoleMenuDto> >(_rolerepositoryread.GetAllRoleMenus()); }, CacheKeyName.RoleMenuKey, default(TimeSpan))); }