Esempio n. 1
0
        public void Post(int profileId, string inviteId)
        {
            if (!_profileService.InviteExistsForUser(profileId, inviteId))
            {
                Response.StatusCode = 204;
                return;
            }
            var result = _profileService.AcceptFriendRequest(inviteId);

            if (!result)
            {
                Response.StatusCode = 500;
                return;
            }
            Response.StatusCode = 200;
        }
Esempio n. 2
0
 public bool Accept(string inviteId)
 {
     return(_profileService.AcceptFriendRequest(inviteId));
 }