예제 #1
0
 public async Task Add(TEntity entity)
 {
     using (var context = new JwtContext())
     {
         context.Add(entity);
         await context.SaveChangesAsync();
     }
 }
예제 #2
0
        public async Task Add(TEntity entity)
        {
            //throw new NotImplementedException();

            using var context = new JwtContext();
            context.Add(entity);
            await context.SaveChangesAsync();
        }