Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

New Post: AsyncEntitySetController BUG - does not properly interpret JSON content

$
0
0

AsyncEntitySetController does not properly interpret JSON content.

Please fix it for EntitySetController, ODataController and ApiController as well.

This works (Controller called with proper entity value) Unfortunatly this is hand edited
"Id":"0","GenreId":"5","ArtistId":"5","Title":"555","Price":"5.99","AlbumArtUrl":"","RowVersion":"AAAAAAAAqqo=","Artist":null,"Genre":null}

This dos not work (Controller called with null entity value) Fortunately created by HttpClient.PutAsJsonAsync() :-)
"Id":0,"GenreId":5,"ArtistId":5,"Title":"555","Price":5.99,"AlbumArtUrl":"","RowVersion":"AAAAAAAAqqo=","Artist":null,"Genre":null,"Carts":[]}

Problem
  • "Id":0
  • "ArtistId":5
  • "Price":5.99
  • "Carts":[]
The controller is getting called in BOTH cases.
There are NO exceptions!

Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>