예제 #1
0
        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));
        }