示例#1
0
 public async Task Delete(BankEntity entity)
 {
     entity.DeletedAt = DateTime.Now;
     db.Update(entity);
     await context.SaveChangesAsync();
 }
示例#2
0
 public async Task Create(BankEntity entity)
 {
     var entry = db.Add(entity);
     await context.SaveChangesAsync();
 }