public void DeleteFriendship(DeleteFriendshipInput input) { long memberId1 = _memberRepository.GetAll().First(x => x.UserName == input.UserName1).Id; long memberId2 = _memberRepository.GetAll().First(x => x.UserName == input.UserName2).Id; _memberRepository.DeleteFriend(memberId1, memberId2); _memberRepository.DeleteFriend(memberId2, memberId1); }