// POST api/contacts public ReturnValue Post([FromBody] Contacts value) { if (value == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } ReturnValue returnValue = new ReturnValue(); try { returnValue.value = entity.ContactCreate(value.UsersSN, value.PhoneHash, value.PhoneName); returnValue.code = 0; returnValue.msg = "succes"; } catch { throw new HttpResponseException(HttpStatusCode.InternalServerError); } return(returnValue); }