public HttpResponseMessage BW() { string content; if (ImageHandler.BW(Request.GetClientIp())) { content = "Black & White On"; } else { content = "Black & White Off"; } return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new StringContent(content, Encoding.UTF8, "text/plain") }); }