示例#1
0
 public ActionResult AcceptFriend(string token)
 {
     try
     {
         var           result = _userService.AcceptFriendRequest(Guid.Parse(token));
         UserFriendDTO res    = new UserFriendDTO();
         res.UserId   = result.UserId;
         res.FriendId = result.FriendId;
         return(Ok(res));
     }
     catch (ArgumentException e)
     {
         _logger.LogInformation(e.Message);
         return(NotFound(e));
     }
 }