//POST api/<controller>/5 public HttpResponseMessage Post(int id, FamilyMember value) { string result; if (value == null) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Invalid Family Member")); } int createdID = _households.AddFamilyMember(id, value, out result); value.ID = createdID; if (createdID == 0) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, result)); } else { return(Request.CreateResponse(HttpStatusCode.Created, value)); } }