IGeekFan.AspNetCore.Knife4jUI/test/Basic/Controllers/FromFormParamsController.cs
2020-08-09 14:50:47 +08:00

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; }
}
}