public void SendRequest(AccountModel friend, AccountModel user)
 {
     friend.RequestedFriendship.Add(user);
 }
 private static void Add(AccountModel friend, AccountModel user)
 {
     user.Friends.Add(friend);
 }
 public void Delete(AccountModel friend, AccountModel user)
 {
     user.Friends.Remove(friend);
 }
 public void DeclineRequest(AccountModel friend, AccountModel user)
 {
     user.RequestedFriendship.Remove(friend);
 }
 public void AcceptRequest(AccountModel friend, AccountModel user)
 {
     Add(friend, user);
         Add(user, friend);
         user.RequestedFriendship.Remove(friend);
 }
 public ActionResult EditProfile(AccountModel user)
 {
     repository.Save(user);
     return View("Details", user);
 }
 public ActionResult Details(AccountModel user)
 {
     return View();
 }