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); }
public EmailNotificationsView() { InitializeComponent(); DataContext = _viewModel = new EmailNotificationsViewModel(); }