예제 #1
0
 // POST: api/Products
 public HttpResponseMessage Post(FormDataCollection values)
 {
     try
     {
         dc.Product_Update(new Guid(values["Id"]), values["Name"], null, values["Description"], new Guid(values["GroupId"]));
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest));
     }
 }