/// <summary> /// Repository for Reconciled Package screen in Package Audit Wizard /// </summary> /// <param name="currentLocation"></param> /// <param name="packageType"></param> /// <param name="barCodeList"></param> /// <returns></returns> public List <ReconciledPackage> GetReconciledPackages(DistributionCentre currentLocation, StandardPackageType packageType, List <string> barCodeList) { List <ReconciledPackage> packageList = null; packageList = ViewDataAccess.GetReconciledPackages(_connectionString, currentLocation, packageType, barCodeList); return(packageList); }
/// <summary> /// Repository for Reconciled Package screen in Package Audit Wizard /// </summary> /// <param name="currentLocation"></param> /// <param name="packageType"></param> /// <param name="barCodeList"></param> /// <returns></returns> public List <ReconciledPackage> GetReconciledPackages(DistributionCentre currentLocation, StandardPackageType packageType, List <string> barCodeList) { List <ReconciledPackage> packageList = null; using (SqlConnection connection = new SqlConnection(_connectionString)) { connection.Open(); XElement barCodeXml = barCodeList.GetBarCodeXML(); packageList = ViewDataAccess.GetReconciledPackages(connection, currentLocation, packageType, barCodeXml); } return(packageList); }