예제 #1
0
        public HttpResponseMessage ShortenURL(string longUrl)
        {
            URLManager          _urlManager = new URLManager();
            var                 result      = _urlManager.Shorten(longUrl);
            HttpResponseMessage response    = Request.CreateResponse(HttpStatusCode.OK, result);

            return(response);
        }