public HttpResponseMessage ShortenURL(string longUrl) { URLManager _urlManager = new URLManager(); var result = _urlManager.Shorten(longUrl); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, result); return(response); }