Hass
Hass
Explore posts from servers
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
now you need to check what is different between what you are sending from what your controller is expecting
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
nice πŸ˜„
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
try accepting/posting a string and see if it hits the controller
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
your CustomerModel does not match what you are sending to the method, probably
25 replies
CC#
Created by Shogunex on 4/25/2024 in #help
βœ… Getting a single value in sql db
I see, for some reason I thought EF optimized that
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
βœ… Getting a single value in sql db
Is it because you chain two operations?
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
βœ… Getting a single value in sql db
Why does it makes two calls? Asking bc it seems that it does one
40 replies
CC#
Created by DerProfi_123 on 4/22/2024 in #help
Best IDE for C#
Even without a student account
20 replies
CC#
Created by DerProfi_123 on 4/22/2024 in #help
Best IDE for C#
You can use rider for free if it’s the EAP version btw
20 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
yikes
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
Now I receive the object, but it always come empty
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
lmao
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
That tip of the json will be of good use, I had no clue that the asp would do all the work and I had to just pass a json
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
Thank you for helping me out on this lol
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
But it receives null value
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
Btw, adding the [FromBody] attribute still triggers the controller
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
I thought it was fine since I wasn't getting any error for ambiguity, but I guess it's not
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
So I had three controllers with the same name, the only difference being that the type of the parameter is different for each of them
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
I discovered what the problem was when I was going to put the FromBody attribute, lol
38 replies
CC#
Created by Hass on 12/25/2022 in #help
❔ Getting error 500 on form post (using fetch)
The model is
public class PostModel
{
public List<string> ImagesPath { get; set; }
public string Description { get; set; }
}
public class PostModel
{
public List<string> ImagesPath { get; set; }
public string Description { get; set; }
}
And I'm expecting a list of the model, so I think it's correct?
38 replies