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