I defined a post method in .net core mvc controller. The data from the form appears blank. I couldn't get any data whatsoever. Where am I doing wrong?
Try to use [FromBody] before commentModel model in the action.You pass data in body,so you need to use [FromBody] to get data from body.