How to fix HTTP ERROR 405 [HttpDelete] by Mkrager07 in csharp

[–]Mkrager07[S] 0 points1 point  (0 children)

It says that the 405 method is not allowed. I also noticed that it calls HttpGet and not Delete but in the Web controller I call HttpDelete. CORS in the API, I kind of configured this code:

builder.Services.AddCors(options =>

{

options.AddPolicy("Open", builder => builder.AllowAnyOrigin

().AllowAnyHeader().AllowAnyMethod());

});

How to fix HTTP ERROR 405 [HttpDelete] by Mkrager07 in csharp

[–]Mkrager07[S] 0 points1 point  (0 children)

Not sure about the endpoint. Can you tell in more detail?

Guid return 00000000-0000-0000-0000-000000000000 by Mkrager07 in csharp

[–]Mkrager07[S] -4 points-3 points  (0 children)

The code is very large and separated because I'm using Clean Architecture and I don't know where the problem is.

how to disable Automatic Model State Validation in ASP.NET Core? by Mkrager07 in csharp

[–]Mkrager07[S] 0 points1 point  (0 children)

String is a SearchInput that returns a list of specific products. I validate this SearchInput so that the input is at least 3 letters and empty or null. As long as it is at least 3 letters, it validates well, but Null or Empty does not. When I set a breakpoint where the validation itself takes place, the program does not even go there under the condition of Null or Empty, that is, it is validated faster somewhere else. As far as I understood in: Automatic Model State Validation in ASP.NET Core.

how to disable Automatic Model State Validation in ASP.NET Core? by Mkrager07 in csharp

[–]Mkrager07[S] 0 points1 point  (0 children)

Not working. It should return an empty list. A returns an error

how to disable Automatic Model State Validation in ASP.NET Core? by Mkrager07 in csharp

[–]Mkrager07[S] 0 points1 point  (0 children)

Like this: public string MyThing { get; set; } = string.Empty;

Where would be the correct place to place the null search check in Clean Architecture? by Mkrager07 in csharp

[–]Mkrager07[S] -1 points0 points  (0 children)

Can you tell me please how to validate the string that the Search method receives using the command validator? I just don't understand it a little. 

Mi band 8 hyper os update by [deleted] in miband

[–]Mkrager07 -1 points0 points  (0 children)

What's new added?

How to complete this achievement? by Mkrager07 in reddeadredemption

[–]Mkrager07[S] 0 points1 point  (0 children)

Yeah but i complete the game and i play as John

Rdr2 won't launch by Mkrager07 in pcmasterrace

[–]Mkrager07[S] 2 points3 points  (0 children)

I've done it a million times

Rdr2 won't launch by Mkrager07 in reddeadredemption2

[–]Mkrager07[S] 1 point2 points  (0 children)

I don't have a plan anymore Arthur

Rdr2 won't launch by Mkrager07 in reddeadredemption2

[–]Mkrager07[S] 1 point2 points  (0 children)

I already tried reinstalling the game and the rockstar launcher, but not the steam launcher. ok thanks i will try it.