public void AddTestTubeAttach(DtoTestTubeAttach dtoTestTubeAttach) { var testTubeAttach = new TestTubeAttach() { ConcreteTest = new ConcreteTest() { Id = dtoTestTubeAttach.DtoConcreteTest.Id }, ConcreteTube = new ConcreteTube() { Id = dtoTestTubeAttach.DtoConctereTube.Id } }; TestTubeAttachMethods.Instance.InsertTestTubeAttach(testTubeAttach); }