public static DetailingOfValues ConvertFromDTO(DetailingOfValuesDTO dd) { DetailingOfValues d = new DetailingOfValues(); d.DetailingOfValuesId = dd.DetailingOfValuesId; d.DescriptionOfItemId = dd.DescriptionOfItemId; d.Value = dd.Value; return(d); }
public static DetailingOfValuesDTO ConvertToDTO(DetailingOfValues d) { DetailingOfValuesDTO dd = new DetailingOfValuesDTO(); dd.DetailingOfValuesId = d.DetailingOfValuesId; dd.DescriptionOfItemId = d.DescriptionOfItemId; dd.Value = d.Value; return(dd); }
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); }