public void SendMessages(HttpResponseBase response, IEnumerable<Message> messages) { response.ContentType = "text/json"; response.Write(MessageConverter.ToJson(messages)); }