public override void Update(BllCustomer entity) { ContractLibService contractLibService = new ContractLibService(uow); contractLibService.Update(entity.ContractLib); uow.Customers.Update(mapper.MapToDal(entity)); uow.Commit(); }
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(); }