I\'ve got a new API that I\'m building with ASP.NET Core, and I can\'t get any data POST\'ed to an endpoint.
Here\'s what the endpoint looks like:
You get always null because you need to encapsulate all your post variables inside only one object. Like this:
null
public class MyPostModel { public List userSocs {get; set;} public int collegeId {get; set;} }
and then
public async Task GetStudentResults([FromBody] MyPostModel postModel)