Mario K.
Mario K.
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
and accepting string results in accepted string being null ...
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
StringContent .... accepting StringContent again does not work ,,,,
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
customer is however StringCintent
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
YESSSS !
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
OK, I'll try
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
I changed, but controller is still not hit...
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
I'll try, but that code is not to be changed ...:)
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
it is -NET 6
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
but the code in controller never gets hit .... and API returns bad request
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
// POST: api/customers [HttpPost] [Consumes("application/json")] public async Task<ActionResult> Post([FromBody] CustomerModel value) {

//throw new NotImplementedException(); }
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
and in 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
var httpResponse = await _client.PostAsync(RequestUri, content);
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
var content = new StringContent(JsonConvert.SerializeObject(customer), Encoding.UTF8, "application/json");
25 replies
CC#
Created by Mario K. on 5/5/2024 in #help
.NET 6 web api - HttpClient.PostAsync not hitting HttpPost in controller
These are the code:
25 replies
CC#
Created by Mario K. on 4/22/2024 in #help
✅ Help with LINK Async !
@canton7 @Jimmacle Thank you ! I appologize for stupid question ! Unfortunately, the other guy messed up the code and implemented wrong method call, so that GetAllAsync actually called GetAllWithDetailsAsync 🙂 Hence, naturally, the method I was writing never got called 🙂
85 replies
CC#
Created by Mario K. on 4/22/2024 in #help
✅ Help with LINK Async !
Can you be more specific regarding "immediately await any async calls" ?
85 replies
CC#
Created by Mario K. on 4/22/2024 in #help
✅ Help with LINK Async !
could be
85 replies
CC#
Created by Mario K. on 4/22/2024 in #help
✅ Help with LINK Async !
I'm just saying that DeleteAsync works fine, but GetAllAsync does not
85 replies
CC#
Created by Mario K. on 4/22/2024 in #help
✅ Help with LINK Async !
Why the Task.Run? Why no await on SaveChangesAsync? work the same
85 replies
CC#
Created by Mario K. on 4/22/2024 in #help
✅ Help with LINK Async !
Both approaces work the same
85 replies