Example #1
0
 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));
     }
 }
Example #2
0
        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));
            }
        }