public bool SearchForInterestIntersection(User user1, User user2)
 {
     var interest1 = user1.interests.AsQueryable();
     var interest2 = user2.interests.AsQueryable();
     var NumberOfInterestIntersection = 0;
     foreach (var x in interest1)
     {
         foreach (var y in interest2)
         {
             if (x == y)
             {
                 NumberOfInterestIntersection++;
             }
         }
     }
     if (NumberOfInterestIntersection > 1)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
 public void DeclineRequest(User friend, User user)
 {
     user.requestedFriendship.Remove(friend);
 }
 public void AcceptRequest(User friend, User user)
 {
     Add(friend, user);
     Add(user,friend);
     user.requestedFriendship.Remove(friend);
 }
 public void SendRequest(User friend, User user)
 {
     friend.requestedFriendship.Add(user);
 }
 public void Delete(User friend, User user)
 {
     user.friends.Remove(friend);
 }
 private static void Add (User friend, User user)
 {
    user.friends.Add(friend);
 }
 public IEnumerable<User> SearchFriendIntersection(User user)
 {
     //var friends = user.friends.AsEnumerable(); 
     throw new NotImplementedException();
 }
 public void Renew(User user)
 {
     throw new NotImplementedException();
 }
 public void Accept(User user, User suggestedFriend)
 {
     //AddFriend.SendRequest(suggestedFriend, user);
     throw new NotImplementedException();
 }
 public ActionResult Edit(User user )
 {
     return View("Index", user);
 }