How to have an action to support form-data and as JSON in the body?

前端 未结 0 1265
春和景丽
春和景丽 2021-01-23 19:58

I have a controller action:

[HttpPost]
[AllowAnonymous]
public async Task Register(RegisterViewModel model, string returnUrl = null) { }


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题