public HttpResponseMessage AddContact([FromUri] int id, [FromBody] StateContactModel value) { var contact = new StateLeadContact() { StateId = id, Name = value.Name, Phone_ = value.Phone, Role = value.Role, Email = value.Email, Additional = value.AdditionalInfo, Fax = value.Fax }; stateRepository.AddContact(contact); return(ToJson(stateRepository.Save())); }