public async Task Uptade(TEntity entity) { using var context = new JwtWebApiContext(); context.Update(entity); await context.SaveChangesAsync(); }
public async Task Remove(TEntity entity) { using var context = new JwtWebApiContext(); context.Remove(entity); await context.SaveChangesAsync(); }