public NotificationTemplateSetupModel(Notification notification) : this(notification.Module) { Id = notification.Id; if (string.IsNullOrEmpty(notification.NotificationBody)) { NotificationTemplates = _notificationTemplateService.GetNotificationTemplates(notification.Module, true); var defaultTemplate = _notificationTemplateService.GetDefaultNotificationTemplate(notification.Module); NotificationSubject = defaultTemplate.Subject; NotificationBody = defaultTemplate.Body; } else { NotificationSubject = notification.NotificationSubject; NotificationBody = notification.NotificationBody; } }