private NotificationRuleVersion MapVersion(NotificationRule item) { NotificationRuleVersion itemVersion = new NotificationRuleVersion { CheckListId = item.CheckListId, AttachReport = item.AttachReport, Subject = item.Subject, Text = item.Text, Version = item.Version, Data = item.Data, DataItemId = item.DataItemId, RuleType = item.RuleType, NotificationRuleId = item.Id, CreatedAt = item.CreatedAt, UpdatedAt = item.UpdatedAt, WorkflowState = item.WorkflowState, UpdatedByUserId = item.UpdatedByUserId, CreatedByUserId = item.CreatedByUserId, AttachLink = item.AttachLink, IncludeValue = item.IncludeValue }; return(itemVersion); }