public async Task Add(TEntity entity) { using (var context = new JwtContext()) { context.Add(entity); await context.SaveChangesAsync(); } }
public async Task Add(TEntity entity) { //throw new NotImplementedException(); using var context = new JwtContext(); context.Add(entity); await context.SaveChangesAsync(); }