예제 #1
0
        public override void Update(BllTemplate entity)
        {
            ControlMethodsLibService controlMethodsLibService = new ControlMethodsLibService(uow);

            controlMethodsLibService.Update(entity.ControlMethodsLib, true);
            uow.Templates.Update(mapper.MapToDal(entity));
            uow.Commit();
        }
        public new BllJournal Update(BllJournal entity)
        {
            ControlMethodsLibService controlMethodsLibService = new ControlMethodsLibService(uow);

            entity.ControlMethodsLib = controlMethodsLibService.Update(entity.ControlMethodsLib, false);
            uow.Journals.Update(mapper.MapToDal(entity));
            uow.Commit();

            return(entity);
        }
        public new BllJournal Create(BllJournal entity)
        {
            ControlMethodsLibService controlMethodsLibService = new ControlMethodsLibService(uow);

            entity.ControlMethodsLib = controlMethodsLibService.Create(entity.ControlMethodsLib, false);
            DalJournal dalEntity = mapper.MapToDal(entity);
            Journal    ormEntity = uow.Journals.Create(dalEntity);

            uow.Commit();
            entity.Id = ormEntity.id;
            return(entity);
        }