示例#1
0
        public List <UserDetails> GetUserDetailsById(string userId)
        {
            var result = _userDetails.GetUserDataById(FilterDefinitionHandler.FilterUserDetailsByUserId(userId), _userDetailsCollection);

            if (result == null || result.Count == 0)
            {
                result = _userDetails.GetUserDataById(FilterDefinitionHandler.FilterUserDetailsByEmailId(userId),
                                                      _userDetailsCollection);
            }

            if (result != null && result.Any())
            {
                return(result);
            }


            return(new List <UserDetails>());
        }