public override OperationObject execute(SmartSoftwareBazaEntities entities) { if (this.DataSelectKolekcijaOpreme != null) { OpOpremaSaParametrimaAdminPanelInsert op = new OpOpremaSaParametrimaAdminPanelInsert(); op.DataSelectOprema = this.DataSelectKolekcijaOpreme; OperationObject rez = OperationManager.Singleton.executeOp(op); this.DataSelectKolekcijaOpreme.id_oprema = op.DataSelectOprema.id_oprema; foreach (var item in this.DataSelectKolekcijaOpreme.kolekcijaOpremeIdjevi) { entities.KolekcijaOpremeInsert(this.DataSelectKolekcijaOpreme.id_oprema, item); } return(base.execute(entities)); } else { return(base.execute(entities)); } }