Ejemplo n.º 1
0
 /// <summary>
 /// Set soft-delete properties on deletion.
 /// </summary>
 /// <param name="entity">The entity</param>
 /// <param name="now">When the entity was deleted</param>
 /// <param name="currentUserName">The user who deleted the entity</param>
 public static void SetSoftDeleted(this ISoftDeletableWithOffset entity, DateTimeOffset now, string currentUserName)
 {
     entity.IsDeleted = true;
     entity.DeletedOn = now;
     entity.DeletedBy = currentUserName;
 }
 private void SetDeleted(ISoftDeletableWithOffset entity)
 {
     entity.SetSoftDeleted(_now.MomentWithOffset, _currentUserAccessor.User.Login);
 }