List<CertMail> lsRecipetNumber = new List<CertMail>();
CertMail class is in data access layer which returns a List<CertMail>. I need to
convert this to the object of my class and return that
List<CertMailReceiptNumbers> lsReceiptNumbers = new List<CertMailReceiptNumbers>();
CertMailReceipt.lsCMRN = lsReceiptNumbers; //---- > return this.
How do i add all the rows in the CertMail list to CertMailRecieptNumbers and return that from CertMailRecieptNumbers class?
If I understand correctly your need it’s a simple mather of mapping from one to another.
Well you need to go throu your CertMail list and then for each of them create a new CertMailReceiptNumbers
Ex.