public HttpResponseMessage Post([FromBody] string URL) { if (string.IsNullOrEmpty(URL)) { return(PrepareResponse(HttpStatusCode.BadRequest, "Wrong URL")); } var insertedResource = _ls.AddLink(CurrentUserId, URL); return(PrepareResponse(HttpStatusCode.OK, JsonConvert.SerializeObject(insertedResource))); }