public IActionResult ArrayExample02([FromBody] List <int> myNumbers) { if (myNumbers.Count < 2) { myNumbers = defaultListIntegers; } var numbers = myNumbers.ToArray(); var result = helper.ArrayExample01(ref numbers); return(Ok(result)); }