public virtual void Add(TInterface entity) { Checks.Argument.IsNotNull(entity, "entity"); LoggedActionFactory.BeforeEntityAdd(log, entity as TClass); Database.Insert(entity as TClass); LoggedActionFactory.AfterEntityAdd(log, entity as TClass); }
public virtual void Remove(TInterface entity) { Checks.Argument.IsNotNull(entity, "entity"); LoggedActionFactory.BeforeEntityRemove(log, entity as TClass); Database.Delete(entity as TClass); LoggedActionFactory.AfterEntityRemove(log, entity as TClass); }