public async Task Seed() { if (!_ctx.Camps.Any()) { // Add Data _ctx.AddRange(_sample); await _ctx.SaveChangesAsync(); } }
public async Task <bool> SaveAllAsync() { return((await _context.SaveChangesAsync()) > 0); }