private void BindAnticipatedNonVatableTransactions() { AccountsServiceClient accountsService = null; try { Guid logonId = ((LogonReturnValue)Session[SessionName.LogonSettings]).LogonId; accountsService = new AccountsServiceClient(); Guid projectId = (Guid)Session[SessionName.ProjectId]; AnticipatedDisbursementLedgerReturnValue returnValue = accountsService.GetAnticipatedDisbursementLedgerNonVatableTransaction(logonId, projectId); if (returnValue.Success) { _grdAnticipatedNonVatable.DataSource = returnValue.Transactions.Rows; _grdAnticipatedNonVatable.DataBind(); } else { throw new Exception(returnValue.Message); } } catch (Exception ex) { throw ex; } finally { if (accountsService != null) { if (accountsService.State != System.ServiceModel.CommunicationState.Faulted) accountsService.Close(); } } }