public FriendRequest Add(FriendRequest friendRequest)
        {
            context.FriendRequests.Add(friendRequest);
            context.SaveChanges();

            return friendRequest;
        }
        private FriendRequest TranslateFriendRequestForResponse(int userProfileId, FriendRequest friendRequest)
        {
            if (friendRequest.UserProfileId == userProfileId)
            {
                friendRequest.IsIncomingRequest = false;
                return friendRequest;
            }

            return new FriendRequest
            {
                Id = friendRequest.Id,
                UserProfileId = friendRequest.FriendUserProfileId,
                UserProfile = friendRequest.FriendUserProfile,
                FriendUserProfileId = friendRequest.UserProfileId,
                FriendUserProfile = friendRequest.UserProfile,
                Note = friendRequest.Note,
                IsAccepted = friendRequest.IsAccepted,
                IsPending = friendRequest.IsPending,
                IsIncomingRequest = true,
                CreatedDate = friendRequest.CreatedDate,
                ModifiedDate = friendRequest.ModifiedDate
            };
        }
 public void Update(FriendRequest friendRequest)
 {
     context.FriendRequests.Update(friendRequest);
     context.SaveChanges();
 }
 public void Remove(FriendRequest friendRequest)
 {
     context.Remove(friendRequest);
     context.SaveChanges();
 }