Angular 5 HttpClient Post List to Web Api - always null?
问题 The setup is Angular 5 and .net core Web Api. At the controller, model binding always results in null while trying to bind to a complex object. Code is provided below. This example is adapted from another SO answer . but its not working for me. Controller: [Route("demopost1")] [HttpPost] public async Task < IntResultEntity > DemoPostList1([FromBody]DemoPostViewModel payload) { return await Task.FromResult(new IntResultEntity { Result = 0 }); } Models: public class DemoPostModel { public