public bool IsUserExists(string username) { return(GetCached(string.Format("IsUserExists_{0}", username), () => roleService.IsUserExists(username))); }
public bool IsUserExists(string username) { var mandatorShorts = identityCacheService.GetMandatorShort(username); return(identityCacheService.IsUserExists(username) && mandatorShorts != null && mandatorShorts.Any()); }