public DalRequirementDocumentationLib MapToDal(BllRequirementDocumentationLib entity) { return(new DalRequirementDocumentationLib { Id = entity.Id }); }
public BllRequirementDocumentationLib MapToBll(DalRequirementDocumentationLib entity) { BllRequirementDocumentationLib bllEntity = new BllRequirementDocumentationLib { Id = entity.Id }; ISelectedRequirementDocumentationMapper selectedRequirementDocumentationMapper = new SelectedRequirementDocumentationMapper(uow); foreach (var RequirementDocumentation in uow.SelectedRequirementDocumentations.GetRequirementDocumentationsByLibId(bllEntity.Id)) { var bllSelectedRequirementDocumentation = selectedRequirementDocumentationMapper.MapToBll(RequirementDocumentation); bllEntity.SelectedRequirementDocumentation.Add(bllSelectedRequirementDocumentation); } return(bllEntity); }