Exemple #1
0
 public IActionResult Minus(int num1, int num2)
 {
     try
     {
         int result = mathRepository.Minus(num1, num2);
         return(Ok(result));
     }
     catch (Exception ex)
     {
         Errors errors = ErrorsHelper.GetErrors(ex);
         return(StatusCode(StatusCodes.Status500InternalServerError, errors));
     }
 }