public ContractLib MapToOrm(DalContractLib entity)
 {
     return(new ContractLib
     {
         id = entity.Id
     });
 }
Exemplo n.º 2
0
        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);
        }