public CertificateLib MapToOrm(DalCertificateLib entity) { return(new CertificateLib { id = entity.Id }); }
public BllCertificateLib MapToBll(DalCertificateLib entity) { BllCertificateLib bllEntity = new BllCertificateLib { Id = entity.Id }; ISelectedCertificateMapper selectedCertificateMapper = new SelectedCertificateMapper(uow); foreach (var certificate in uow.SelectedCertificates.GetCertificatesByLibId(bllEntity.Id)) { var bllSelectedCertificate = selectedCertificateMapper.MapToBll(certificate); bllEntity.SelectedCertificate.Add(bllSelectedCertificate); } return(bllEntity); }