You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Application.Common.DTO;
using Application.TableObjects;
using Application.TableObjects.Commands;
using Application.TableObjects.Queries;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using RI.QueryExecutor;
namespace WebUI.Controllers;
public class ListTableController : ApiControllerBase
{
public ListTableController(ISender sender, IHttpContextAccessor httpContextAccessor)
: base(sender, httpContextAccessor) { }
[HttpPost("save")]
public async Task<IResult<TableIndexDto>> CreateAsyc([FromBody] CreateTableIndex request)
=> await Mediator.Send(request);
[HttpDelete("save")]
public async Task<IResult<TableIndexDto>> UpdateAsyc([FromQuery] DeleteTableIndex request)
=> await Mediator.Send(request);
[HttpPut("save")]
public async Task<IResult<TableIndexDto>> UpdateAsyc([FromBody] UpdateTableIndex request)
=> await Mediator.Send(request);
}
Can you try issuing the request with curl to see if it works that way? I suspect that your client app is not using the correct path but I don't know angular so this is just a guess. But if we can confirm that the endpoints work from curl that would point in that direction.
Is there an existing issue for this?
Describe the bug
I am encountering a strange problem.
In our application I have a single controller where PUT, DELETE, POST getting 405 error
while the rest of controllers are working properly.
here is how my Web.Config is:
Here is my startup.cs
From controller I am getting this Response header:
Controller:
angular service:
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8
Anything else?
No response
The text was updated successfully, but these errors were encountered: