public void Kesinlestir(int nobetUstGrupId) { var eczaneNobetSonucAktifler = _eczaneNobetSonucAktifService.GetSonuclar2(nobetUstGrupId); foreach (var aktifSonuc in eczaneNobetSonucAktifler) { var insertEntity = new EczaneNobetSonuc { EczaneNobetGrupId = aktifSonuc.EczaneNobetGrupId, TakvimId = aktifSonuc.TakvimId, NobetGorevTipId = aktifSonuc.NobetGorevTipId }; _eczaneNobetSonucService.Insert(insertEntity); } }