public IEnumerable <_ACAG_AbacusCalendarConnector> Get([FromBody] TenantModel tenant) { try { var result = new List <_ACAG_AbacusCalendarConnector>(); ConnectionParameters connectionParameters = new ConnectionParameters( tenant.AbacusSetting.ServiceServerName, tenant.AbacusSetting.ServicePort, tenant.AbacusSetting.UseSsl, tenant.AbacusSetting.ServiceUser, tenant.AbacusSetting.ServicePasswordCrypted, tenant.Number); LoginHandler loginHandlerInstance = new LoginHandler(connectionParameters); AbaReportAccessorNew abaReportAccessorNew = new AbaReportAccessorNew(loginHandlerInstance); List <_ACAG_AbacusCalendarConnector> list = abaReportAccessorNew.GetListFromMatrixReport <_ACAG_AbacusCalendarConnector>( "_ACAG_AbacusCalendarConnector", string.Empty, string.Empty, false).ToList(); return(list); } catch (Exception ex) { throw new BusinessException(System.Net.HttpStatusCode.InternalServerError, ex.Message); } }
public static List <_ACAG_AbacusCalendarConnector> GetReportData(TenantModel tenant, AbacusSettingModel abacusSetting) { List <_ACAG_AbacusCalendarConnector> result; ConnectionParameters connectionParameters = new ConnectionParameters( abacusSetting.ServiceServerName, abacusSetting.ServicePort, abacusSetting.UseSsl, abacusSetting.ServiceUser, abacusSetting.ServicePasswordCrypted, tenant.Number); LoginHandler loginHandlerInstance = new LoginHandler(connectionParameters); AbaReportAccessorNew abaReportAccessorNew = new AbaReportAccessorNew(loginHandlerInstance); result = abaReportAccessorNew.GetListFromMatrixReport <_ACAG_AbacusCalendarConnector>( "_ACAG_AbacusCalendarConnector", string.Empty, string.Empty, false).ToList(); return(result); }