From 408fa0f87ed15bf8ff6f866cb4f0bcafbad3d5f6 Mon Sep 17 00:00:00 2001 From: Loretta Date: Wed, 22 Oct 2025 16:20:36 +0200 Subject: [PATCH] refactoring, cleanup v1.1... --- Mango.Nop.Core/Repositories/MgDbTableBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mango.Nop.Core/Repositories/MgDbTableBase.cs b/Mango.Nop.Core/Repositories/MgDbTableBase.cs index dea5a81..951f463 100644 --- a/Mango.Nop.Core/Repositories/MgDbTableBase.cs +++ b/Mango.Nop.Core/Repositories/MgDbTableBase.cs @@ -29,7 +29,7 @@ public abstract class MgDbTableBase(IEventPublisher eventPublisher, INo { if (typeof(TEntity).GetInterface(nameof(ITimeStampCreated)) != null) { - ((entity as ITimeStampCreated)!).Created = DateTime.UtcNow; + (entity as ITimeStampCreated)!.Created = DateTime.UtcNow; } } @@ -37,7 +37,7 @@ public abstract class MgDbTableBase(IEventPublisher eventPublisher, INo { if (typeof(TEntity).GetInterface(nameof(ITimeStampModified)) != null) { - ((entity as ITimeStampModified)!).Modified = DateTime.UtcNow; + (entity as ITimeStampModified)!.Modified = DateTime.UtcNow; } }