public ActionResult GetFriends(int id) { if (!_validator.ValidateGetFriends()) { return(BadRequest()); } var user = _memberRepo.GetMember(id); var friends = user.GetFriends(); return(Accepted($"api/members/{user.Id}/friends", friends)); }