using Comal.Classes; using Comal.Stores; using NPOI.HSSF.Record; using System.Collections.Generic; using System.Text; using InABox.Core; using System; namespace PRSStores { public class StagingSetoutStore : BaseStore { protected override void BeforeSave(StagingSetout entity) { if ((entity.Setout.ID != Guid.Empty || entity.Task.ID != Guid.Empty) && entity.Archived == DateTime.MinValue) entity.Archived = DateTime.Now; base.BeforeSave(entity); } } }