public static SoftDeletedResource FromModel(ITimestampedModel model, string name) { return(new() { Id = model.Id, Name = name, UpdatedAt = model.UpdatedAt }); }
public static void BumpUpdatedAt(this ITimestampedModel entity) { entity.UpdatedAt = DateTime.UtcNow; }