這是我的控制器是什麼樣子: [Route("api/[controller]")]
[Produces("application/json")]
public class ClientsController : Controller
{
private readonly IDataService _clients;
public ClientsController(ID
我正在從我的SPA進行回發到我的Asp.net控制器的POST。該控制器具有這種設置: [HttpPost]
[AllowAnonymous]
public async Task<IActionResult> Get([FromForm] LoginViewModel model)
{
我的asp.net核心API登錄視圖模型是: public class Log