public IActionResult Multiply([FromBody] SimpleCalculatorData input)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest());
     }
     return(Ok(_calculator.Multiply(input.value1, input.value2)));
 }
 public IActionResult Divide([FromBody] SimpleCalculatorData input)
 {
     try
     {
         if (!ModelState.IsValid)
         {
             return(BadRequest());
         }
         return(Ok(_calculator.Divide(input.value1, input.value2)));
     }
     catch (System.DivideByZeroException)
     {
         return(BadRequest());
     }
 }