public IActionResult Delete(Guid id) { bool result = FriendRepository.DeleteFriend(id); if (!result) { return(BadRequest()); } return(Ok()); }