public async Task Remove(TEntity entity) { using var context = new JwtContext(); context.Remove(entity); await context.SaveChangesAsync(); // throw new NotImplementedException(); }
public async Task Remove(T entity) { using var context = new JwtContext(); context.Remove(entity); await context.SaveChangesAsync(); }
public async Task Delete(int id) { using var context = new JwtContext(); context.Remove(id); await context.SaveChangesAsync(); }