コード例 #1
0
        internal static void ImportSeatingClasses()
        {
            string json           = ReadJsonFile("classes");
            var    seatingClasses = JsonConvert.DeserializeObject <IEnumerable <SeatingClass> >(json);

            SeatingClassStore.AddSeatingClasses(seatingClasses);
        }
コード例 #2
0
        public static void ImportSeatingClass()
        {
            var json       = File.ReadAllText("../../../Resources/classes.json");
            var seatClases = JsonConvert.DeserializeObject <ICollection <SeatingClass> >(json);

            SeatingClassStore.AddSeatingClass(seatClases);
        }