public DalContractLib MapToDal(BllContractLib entity) { return(new DalContractLib { Id = entity.Id }); }
public BllContractLib MapToBll(DalContractLib entity) { BllContractLib bllEntity = new BllContractLib { Id = entity.Id }; IContractMapper ContractMapper = new ContractMapper(); foreach (var Contract in uow.Contracts.GetContractsByLibId(bllEntity.Id)) { var bllContract = ContractMapper.MapToBll(Contract); bllEntity.Contract.Add(bllContract); } return(bllEntity); }