Esempio n. 1
0
        public override void Update(BllCustomer entity)
        {
            ContractLibService contractLibService = new ContractLibService(uow);

            contractLibService.Update(entity.ContractLib);
            uow.Customers.Update(mapper.MapToDal(entity));
            uow.Commit();
        }
Esempio n. 2
0
        public override void Create(BllCustomer entity)
        {
            ContractLibService contractLibService = new ContractLibService(uow);
            var contractLib = contractLibService.Create(entity.ContractLib);

            entity.ContractLib = contractLib;
            uow.Customers.Create(mapper.MapToDal(entity));
            uow.Commit();
        }