public static void Seed(ITimetableDataService service) { service.Initialise(); var c1 = service.Insert(new Timetable { Day = "Monday", ClassType = "Boxing", Duration = 60.0, Description = "Beginners course for boxing" }); var c2 = service.Insert(new Timetable { Day = "Tuesday", ClassType = "Strength & Conditioning", Duration = 60.0, Description = "Fast paced class to burn fat and get fit" }); }
public TimetableController() { service = new TimetableDataService(); }