protected override Task <bool> SaveAsync() { FilterScheme.Title = FilterSchemeTitle; _originalFilterScheme.Update(FilterScheme); return(TaskHelper <bool> .FromResult(true)); }
protected override async Task <bool> SaveAsync() { if (FilterScheme.HasInvalidConditionItems && await _messageService.ShowAsync(_languageService.GetString("FilterBuilder_SaveBroken"), _languageService.GetString("FilterBuilder_AreYouSure"), MessageButton.YesNo) == MessageResult.No) { return(false); } FilterScheme.Title = FilterSchemeTitle; _originalFilterScheme.Update(FilterScheme); return(true); }