ASP.Net Web Api not binding model on POST
问题 I'm trying to POST JSON data to a Web Api method but the JSON data is not binding to the model. Here's my model: [DataContract] public class RegisterDataModel { [DataMember(IsRequired = true)] public String SiteKey { get; set; } [DataMember(IsRequired = true)] public String UserId { get; set; } [DataMember(IsRequired = true)] public String UserName { get; set; } } Here's my Web Api action: public class RegisterController : ApiController { public Guid Post([ModelBinder] RegisterDataModel