|
@@ -94,6 +94,17 @@ namespace InABox.Clients
|
|
|
CheckClient<TEntity>().Save(entities, auditNote);
|
|
|
}
|
|
|
|
|
|
+ public static void Save<TEntity>(TEntity entity, string auditNote, Action<TEntity, Exception?> callback)
|
|
|
+ where TEntity : Entity, IRemotable, IPersistent, new()
|
|
|
+ {
|
|
|
+ CheckClient<TEntity>().Save(entity, auditNote, callback);
|
|
|
+ }
|
|
|
+ public static void Save<TEntity>(IEnumerable<TEntity> entities, string auditNote, Action<IEnumerable<TEntity>, Exception?> callback)
|
|
|
+ where TEntity : Entity, IRemotable, IPersistent, new()
|
|
|
+ {
|
|
|
+ CheckClient<TEntity>().Save(entities, auditNote, callback);
|
|
|
+ }
|
|
|
+
|
|
|
public static void Delete<TEntity>(TEntity entity, string auditNote)
|
|
|
where TEntity : Entity, IRemotable, IPersistent, new()
|
|
|
{
|