void CalculateAddition() { try { if (int.TryParse(firstParameter, out int firstValue) && int.TryParse(secondParameter, out int secondValue)) { result = calculateService.Addition(firstValue, secondValue).ToString(); } else { result = Constants.ErrorMessage; } } catch (Exception) { Result = string.Empty; } finally { OnPropertyChanged(nameof(Result)); } }