public async Task <ConfirmFriendResult> DoConfirmFriend(ConfirmFriendInfo request) { try { return(await _dataExchange.DoDataExchange <ConfirmFriendResult, ConfirmFriendInfo>(request, CmdName)); } catch (Exception e) { return(new ConfirmFriendResult(false, e.Message)); } }
public async Task <ConfirmFriendResult> DoConfirmFriend(ConfirmFriendInfo request) { try { dynamic requestInfo = request; var result = await DataExchange.DoDataExchange((object)requestInfo); ConfirmFriendResult retVal = result.ToObject <ConfirmFriendResult>(); return(retVal); } catch (Exception e) { return(new ConfirmFriendResult(false, e.Message)); } }