mirror of
https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
synced 2025-04-25 09:12:51 +08:00
22 lines
542 B
C#
22 lines
542 B
C#
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; }
|
|
}
|
|
} |