private LogEntity NotificationEmailSent(EditionEntity edition, NotificationType notificationType, DateTime notificationDate) { var logs = LogServices.GetLogsByEdition(edition.EditionId, EntityType.Email.ToString(), notificationType.ToString(), notificationDate); logs = ExtractSentNotificationEmailLogs(logs); return(logs.Any() ? logs.OrderByDescending(x => x.CreatedOn).First() : null); }