public ActionResult DeleteFriends(DeleteFriendRequest deleteFriendRequest, int id) { if (!_validator.ValidateDeleteFriends()) { return(BadRequest()); } var user = _memberRepo.GetMember(id); user.Friends.Remove(deleteFriendRequest.FriendId); var friends = user.GetFriends(); return(Accepted($"api/members/{user.Id}/friends", friends)); }