public virtual FoundationContact GetContactByEmail(string email)
        {
            var contact = _customerContext.GetContacts(0, 1000)
                          .FirstOrDefault(user => user.Email == email);

            return(contact == null ? null : new FoundationContact(contact));
        }
 private List <DemoUserViewModel> GetDemoUsers(bool showCommerceUsers)
 {
     return(_customerContext.GetContacts(0, 1000)
            .Select(_ => new FoundationContact(_))
            .Where(_ => showCommerceUsers ? _.ShowInDemoUserMenu > 1 : _.ShowInDemoUserMenu == 2)
            .Select(_ => new DemoUserViewModel
     {
         Description = _.DemoUserDescription,
         Title = _.DemoUserTitle,
         Id = _.ContactId,
         Email = _.Email,
         FullName = _.FullName
     })
            .OrderBy(_ => _.SortOrder)
            .ToList());
 }