protected bool EmailAddressExists(string email, bool AllowDuplicateEmail) { bool status = false; Guid UserID = new Guid(hdnEditUserID.Value); if (!AllowDuplicateEmail) { SageFrameUserCollection userColl = m.GetAllUsers(); status = userColl.UserList.Exists( delegate(UserInfo obj) { return(obj.Email == email && obj.UserID != UserID); } ); } return(status); }