public async Task <JsonResult> fibonacciRecursive()
 {
     int[] fib = new int[46];
     for (int i = 0; i <= 45; i++)
     {
         fib[i] = await Task.Run(() => FibonacciController.fibonacci(i));
     }
     return(Json(fib));
 }
 private static int fibonacci(int num)
 {
     if (num == 0)
     {
         return(0);
     }
     if (num == 1)
     {
         return(1);
     }
     return(FibonacciController.fibonacci(num - 1) + FibonacciController.fibonacci(num - 2));
 }