public async Task Add(T entity) { await Context.Set <T>().AddAsync(entity); await Context.SaveChangesAsync(); }
public AsyncRepository(User_ProjectContext context) { Context = context; table = context.Set <T>(); }