Example #1
0
        public static DetailingOfValues ConvertFromDTO(DetailingOfValuesDTO dd)
        {
            DetailingOfValues d = new DetailingOfValues();

            d.DetailingOfValuesId = dd.DetailingOfValuesId;
            d.DescriptionOfItemId = dd.DescriptionOfItemId;
            d.Value = dd.Value;
            return(d);
        }
Example #2
0
        public static DetailingOfValuesDTO ConvertToDTO(DetailingOfValues d)
        {
            DetailingOfValuesDTO dd = new DetailingOfValuesDTO();

            dd.DetailingOfValuesId = d.DetailingOfValuesId;
            dd.DescriptionOfItemId = d.DescriptionOfItemId;
            dd.Value = d.Value;
            return(dd);
        }
Example #3
0
        public static List <DetailingOfValues> ConvertToListFromDTO(List <DetailingOfValuesDTO> ldd)
        {
            List <DetailingOfValues> ld = new List <DetailingOfValues>();

            for (int i = 0; i < ldd.LongCount(); i++)
            {
                DetailingOfValues d = new DetailingOfValues();
                d.DetailingOfValuesId = ldd[i].DetailingOfValuesId;
                d.DescriptionOfItemId = ldd[i].DescriptionOfItemId;
                d.Value = ldd[i].Value;
                ld.Add(d);
            }
            return(ld);
        }