Ejemplo n.º 1
0
 public HttpResponseMessage Post([FromBody] String url)
 {
     using (UrlManager urlManager = new UrlManager())
     {
         return(Request.CreateResponse(HttpStatusCode.OK, urlManager.AddShortUrl(url)));
     }
 }