public UnitController(UnitContext context) { _context = context; if (_context.Units.Count() == 0) { _context.Units.Add(new Unit { UnitName = "Web Application Development", UnitCode = "FIT5032" }); _context.Units.Add(new Unit { UnitName = "Programming Foundations in Java", UnitCode = "FIT9131" }); _context.Units.Add(new Unit { UnitName = "Introduction to Databases", UnitCode = "FIT9132" }); _context.SaveChanges(); } }
public void save() { _dbContext.SaveChanges(); throw new NotImplementedException(); }