public static void Seed(AppDbcontext context) { if (context.Lights.Any()) { return; } context.AddRange ( ); context.SaveChanges(); }
public LightRepository(AppDbcontext appDbcontext) { _context = appDbcontext; }