示例#1
0
        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";
        }
示例#2
0
 public BasePage()
 {
     this.data = new HeatEscapeContext();
 }