public void Add(ArmyVsArmyReport entity)
 {
     this.context.Add(entity);
 }
コード例 #2
0
        public void CreateJsonArmy(ArmyVsArmyReport report)
        {
            string json = JsonConvert.SerializeObject(report, Formatting.Indented);

            File.WriteAllText(Path.Combine(workingDir, (report.Army1Id + "-" + report.Army2Id + ".json")), json);
        }