コード例 #1
0
        // PUT api/tag/5
        public HttpResponseMessage Put(Tag tag)
        {
            //TODO: Validation

            if(db.Insert(tag))
                return Request.CreateResponse(HttpStatusCode.Created);
            return Request.CreateResponse(HttpStatusCode.BadRequest);
        }
コード例 #2
0
 // POST api/tag
 public HttpResponseMessage Post(Tag tag)
 {
     return Request.CreateResponse(HttpStatusCode.NotImplemented);
 }