protected void TreatHandledException(BusinessException bex, BaseViewModel viewModel) { Debug.WriteLine(bex.Message); _logger.LogError(bex.Message); #if DEBUG viewModel.ErrorMessage = string.Join(" > ", bex.FlattenInnerException()); #else viewModel.ErrorMessage = bex.Message; #endif }