public async Task <GetAccountMonthlySpendResponse> GetAccountMonthlySpendAsync( long accountId, DateTime monthYear) { var request = new GetAccountMonthlySpendRequest { AccountId = accountId, MonthYear = monthYear }; return(await CustomerBillingService.CallAsync((s, r) => s.GetAccountMonthlySpendAsync(r), request)); }
public async Task <GetAccountMonthlySpendResponse> GetAccountMonthlySpendAsync(ApiAuthentication auth, long accountId, DateTime monthYear) { var request = new GetAccountMonthlySpendRequest { AccountId = accountId, MonthYear = monthYear, }; try { SetAuthHelper.SetAuth(auth, request); return(await Check().GetAccountMonthlySpendAsync(request)); } catch (Exception ex) { Log(new LogEventArgs(ServiceType.CustomerBilling, "GetAccountMonthlySpendAsync", ex.Message, new { Request = request }, ex)); } return(null); }