public static Task <string> GetWalletBalancesAsync() { using (var svcInstance = new MemberClient()) { var member = new Members(); var info = member.MemberData(); if (string.IsNullOrWhiteSpace(info.MemberCode)) { member.CheckMemberSession(info.CurrentSessionId); info = member.MemberData(); } return(svcInstance.getBalancesAsync(commonVariables.OperatorId, commonVariables.SiteUrl, info.MemberCode)); } }