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