using System; namespace IOL.Fagprove.Data.Models { public class CoreDataModel { public Guid Id { get; set; } public DateTime? CreatedUtc { get; set; } public Guid? CreatedBy { get; set; } public DateTime? ModifiedUtc { get; set; } public Guid? ModifiedBy { get; set; } public void SetIsUpdating(bool isUpdating = true) { if (isUpdating) { Id = Id; CreatedUtc = CreatedUtc; CreatedBy = CreatedBy; ModifiedBy = ModifiedBy; ModifiedUtc = ModifiedUtc; } } } }