Beispiel #1
0
        private Cleansed_Pack_Data Map_RawPackData_ToCleansedPackData(Raw_Pack_Data rawPack)
        {
            Cleansed_Pack_Data result = new Cleansed_Pack_Data()
            {
                Pack_Id         = rawPack.PACK_ID,
                Pack_Name       = rawPack.PACK_NAME,
                Number_of_Sizes = rawPack.NO_OF_SIZES,
                Number_of_Units = rawPack.NO_OF_UNITS,
            };

            return(result);
        }
Beispiel #2
0
        public IEnumerable <Cleansed_Pack_Data> Return_InterprettedData_ToCleansedData(IEnumerable <Raw_Pack_Data> rawPackData)
        {
            List <Cleansed_Pack_Data> result = new List <Cleansed_Pack_Data>();

            foreach (var rawPack in rawPackData)
            {
                Cleansed_Pack_Data newPack = Map_RawPackData_ToCleansedPackData(rawPack);

                result.Add(newPack);
            }

            return(result);
        }