Trying to send data on button click using Angular 1.x.
Client-side debug shows object set correctly:
https://i.sstatic.net/Emjpk.png
Server-side debug reveals lost values:
https://i.sstatic.net/50l4G.png
Here is my POCO:
[Serializable]
public class Item
{
public int Id { get; set; }
public string Key { get; set; }
public int Value { get; set; }
public string Description { get; set; }
}
UPDATE:
The current solution works but appears messy...
https://i.sstatic.net/mwzFn.png
Is it possible to eliminate the conversion and directly use the Item
type as a parameter instead of a JObject
?