Which one is better for getting parameter in controller? using view model or direct arguments in controller method?

前端 未结 0 883
一个人的身影
一个人的身影 2020-12-09 17:24

First one:

[HttpDelete("Address")]
public IActionResult Delete([FromForm] string name, [FromForm] string family)
{
      // some code !
      return         


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