public static EquationWithResultViewModel CreateFromError(EquationViewModel equation, Exception ex)
 {
     return(new EquationWithResultViewModel(equation)
     {
         Error = ex.Message
     });
 }
 public static EquationWithResultViewModel CreateFromResult(EquationViewModel equation, EquationResultModel result)
 {
     return(new EquationWithResultViewModel(equation)
     {
         Outcome = result.Outcome.ToString().ToLowerInvariant(),
         Result = result.Result
     });
 }
 protected EquationWithResultViewModel(EquationViewModel equation)
     : base(equation.VariableName, equation.Equation)
 {
 }