コード例 #1
0
        public async Task <bool> EmailNotificationSettings([FromBody] EmailNotificationsViewModel model)
        {
            // Save the email settings
            var settings = Mapper.Map <EmailNotificationSettings>(model);
            var result   = await Save(settings);

            // Save the templates
            await TemplateRepository.UpdateRange(model.NotificationTemplates);

            return(result);
        }
コード例 #2
0
        public EmailNotificationsView()
        {
            InitializeComponent();

            DataContext = _viewModel = new EmailNotificationsViewModel();
        }