private void SetNewQuestionsIds() { BeingSolved.QuestionsIds.Clear(); foreach (var question in BeingSolved.Question) { int newId = _dao.GetNewQuestionId(); question.Id = newId; BeingSolved.QuestionsIds.Add(newId); _dao.AddQuestion(question); _dao.InsertQuestion(question); _dao.InsertQuestionId(BeingSolved.Id, newId); } //tworze nowe pytania w dao //robie insert nowych pytań //robie insert nowych ID //przypisuje w historii nowe id każdemu pytaniu //zmieniam qIds w historii }