internal void ResetAllProgressForMember(string memberId) { var q = Progress .Where(p => p.MemberId == memberId); foreach (var item in q) { Progress.Remove(item); } SaveChanges(); }
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(); }