Example #1
0
 public async Task Delete(ClientEntity entity)
 {
     entity.DeletedAt = DateTime.Today;
     db.Update(entity);
     await context.SaveChangesAsync();
 }
Example #2
0
 public async Task Create(ClientEntity entity)
 {
     var entry = db.Add(entity);
     await context.SaveChangesAsync();
 }