Exemplo n.º 1
0
 public bool IsUserExists(string username)
 {
     return(GetCached(string.Format("IsUserExists_{0}", username), () => roleService.IsUserExists(username)));
 }
Exemplo n.º 2
0
        public bool IsUserExists(string username)
        {
            var mandatorShorts = identityCacheService.GetMandatorShort(username);

            return(identityCacheService.IsUserExists(username) && mandatorShorts != null && mandatorShorts.Any());
        }