public SkillController(CapsContext context) { _context = context; if (_context.Skills.Count() == 0) { // Create a new TodoItem if collection is empty, // which means you can't delete all TodoItems. _context.Skills.Add(new Skill { Name = "Item1" }); _context.SaveChanges(); } }
public OpportunityController(CapsContext context) { _context = context; }