Esempio n. 1
0
        public HttpResponseMessage Post(List <User> value)
        {
            HttpResponseMessage response;

            if (!Object.Equals(null, value))
            {
                List <User> cr = _tweetService.CreateUsers(value);
                response = Request.CreateResponse(HttpStatusCode.Created);
                //response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = 1 }));
            }
            else
            {
                response = Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            return(response);
        }