/// <summary> /// This Method is a javascript callable method. /// </summary> /// <param name="e">A parameter from javascript.</param> /// <param name="y">A callback to javascript.</param> public Task<Test> WebMethod2() { var i = new Test { arr = new[] { new Test2(), new Test2() } }; i.arr = i.arr.AddToArray(new Test2()); return i.AsResult(); }