public static NotificationType MapToNotificationType(NotificationSettingsViewModel notificationSettingsVM) { NotificationType notificationType = new NotificationType(); notificationType.Interval = notificationSettingsVM.Interval; notificationType.KindOfNotification = notificationSettingsVM.KindOfNotification; notificationType.RepetitionCount = notificationSettingsVM.RepetitionCount; notificationType.TimeBefore = notificationSettingsVM.TimeBefore; return notificationType; }