コード例 #1
0
        public IActionResult Index()
        {
            NotificationContentTemplate notificationContentTemplate = new NotificationContentTemplate
            {
                Content = "New Content 2"
            };
            SmsNotificationTemplate smsNotificationTemplate = new SmsNotificationTemplate
            {
                Content  = notificationContentTemplate,
                IsActive = true
            };

            smsNotificationTemplate.AddGsmNumber("1234567890");
            smsNotificationTemplate.AddGsmNumber("1234567891");
            //notificationTemplateService.AddSmsNotificationTemplate(smsNotificationTemplate);
            var x = notificationTemplateService.GetAllSmsNotificationTemplates();

            notificationTemplateService.DummyUpdate();
            return(View());
        }
 public void AddSmsNotificationTemplate(SmsNotificationTemplate smsNotificationTemplate)
 {
     workflowEngineDbContext.SmsNotificationTemplate.Add(smsNotificationTemplate);
     workflowEngineDbContext.SaveChanges();
 }