Esempio n. 1
0
        internal void ResetAllProgressForMember(string memberId)
        {
            var q = Progress
                    .Where(p => p.MemberId == memberId);

            foreach (var item in q)
            {
                Progress.Remove(item);
            }
            SaveChanges();
        }
Esempio n. 2
0
        internal void ResetCategoryForMember(int categoryId, string memberId)
        {
            var q = Progress
                    .Where(p => p.Question.QuizUnit.CategoryId == categoryId)
                    .Where(p => p.MemberId == memberId);

            foreach (var item in q)
            {
                Progress.Remove(item);
            }
            SaveChanges();
        }