public void CreatePlayer(Player NewPlayer) { using (var db = new LanguageBoosterContext()) { db.Players.Attach(NewPlayer); db.Players.Add(NewPlayer); db.SaveChanges(); } }
public void SubmitScore(Score NewScore) { using (var db = new LanguageBoosterContext()) { db.Scores.Attach(NewScore); db.Scores.Add(NewScore); db.SaveChanges(); } }
public void SubmitWord(Word NewWord) { using (var db = new LanguageBoosterContext()) { db.Words.Add(NewWord); db.SaveChanges(); } }