Beispiel #1
0
 // POST: api/Cities
 public HttpResponseMessage Post(FormDataCollection values)
 {
     try
     {
         dc.City_Insert(values["name"]);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch {
         return(Request.CreateResponse(HttpStatusCode.BadRequest));
     }
 }