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); }