internal static void ImportSeatingClasses() { string json = ReadJsonFile("classes"); var seatingClasses = JsonConvert.DeserializeObject <IEnumerable <SeatingClass> >(json); SeatingClassStore.AddSeatingClasses(seatingClasses); }
public static void ImportSeatingClass() { var json = File.ReadAllText("../../../Resources/classes.json"); var seatClases = JsonConvert.DeserializeObject <ICollection <SeatingClass> >(json); SeatingClassStore.AddSeatingClass(seatClases); }