public async Task AddAsync(T entity) { await context.Set <T>().AddAsync(entity); await context.SaveChangesAsync(); }
public async Task Save() { await db.SaveChangesAsync(); }
public async Task AddAsync(T entity) { await context.Set <T>().AddAsync(entity); await context.SaveChangesAsync(); }
public async Task Save() { await db.SaveChangesAsync(); }