public ClientReport GetNewClientReport() { try { using (var aimp = new Aimp(_login, _password)) { return(new ClientReport(new ClientReportDocument(), aimp.GetClientStatuses(), aimp.GetCreditProgramms(), aimp.GetBanks(), aimp.GetBankStatuses())); } } catch (Exception ex) { return(new ClientReport(ex)); } }
public ClientReport GetClientReport(int id) { try { using (var aimp = new Aimp(_login, _password)) { var response = new ClientReport(aimp.GetDocument <ClientReportDocument>(id), aimp.GetClientStatuses(), aimp.GetCreditProgramms(), aimp.GetBanks(), aimp.GetBankStatuses()); return(response); } } catch (Exception ex) { return(new ClientReport(ex)); } }