mirror of
https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
synced 2025-08-04 09:37:59 +08:00
添加项目文件。
This commit is contained in:
22
test/Basic/Controllers/FromFormParamsController.cs
Normal file
22
test/Basic/Controllers/FromFormParamsController.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Basic.Controllers
|
||||
{
|
||||
public class FromFormParamsController
|
||||
{
|
||||
[HttpPost("registrations")]
|
||||
[Consumes("application/x-www-form-urlencoded")]
|
||||
public IActionResult PostForm([FromForm]RegistrationForm form)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class RegistrationForm
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public IEnumerable<int> PhoneNumbers { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user