private void SendData(List <Task> tasks) { Response.ContentType = "application/json"; Response.Write(tasks.ToJSON()); Response.End(); }