public static string SaveHighScore(string owner, string points) { var dbContext = new HeatEscapeContext(); dbContext.HighScores.Add(new HighScore { Owner = owner, Points = double.Parse(points), DateCreated=DateTime.Now }); dbContext.SaveChanges(); return "completed"; }
public BasePage() { this.data = new HeatEscapeContext(); }