Exemple #1
0
 public void Delete(MadeMistake madeMistake)
 {
     this.dataContext.MadeMistakes.Remove(madeMistake);
     this.dataContext.SaveChanges();
 }
Exemple #2
0
 public void Add(MadeMistake mistake)
 {
     this.dataContext.MadeMistakes.Add(mistake);
     this.dataContext.SaveChanges();
 }
Exemple #3
0
        public void Delete(string username, string classId, int classNum, string mistakeId)
        {
            MadeMistake madeMistake = GetMadeMistake(username, classId, classNum, mistakeId);

            Delete(madeMistake);
        }