protected void btnGetFibonacci_Click(object sender, EventArgs e) { litGetFibonacciResult.Text = litGetFibonacciError.Text = ""; try { var skipValue = long.Parse(txtGetFibonacciSkip.Text); var takeValue = long.Parse(txtGetFibonacciTake.Text); var results = client.GetFibonacciNumbers(skipValue, takeValue); litGetFibonacciResult.Text = string.Join(", ", results.ConvertAll(x => x.ToString()).ToArray()); } catch (Exception ex) { litGetFibonacciError.Text = ex.Message; } }