예제 #1
0
 // PUT: api/Cities/5
 public HttpResponseMessage Put(Guid id, FormDataCollection values)
 {
     try
     {
         dc.City_Update(id, values["name"]);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest));
     }
 }