skip to Main Content

Parameters are coming null from ajax call – Jquery

I have a following method in ASP.NET MVC: public PartialViewResult SaveUpdateVariants(string TitleEn, string TitleAr, int ItemID, List<ItemVariant> data) { } I am calling it from ajax call like this $.ajax({ url: '/Inventory/SaveUpdateVariants', contentType: 'application/json; charset=utf-8', // Include ContentType data :…

VIEW QUESTION

C# : How to Deserialize json data – Asp.net

How to deserialized this type of json file usig C# My Json [{"data":{"CRC":"a459","PC":"3000","TID":"e2806810200000040a0652c8","antenna":3,"channel":922.75,"eventNum":396,"format":"epc","idHex":"e28068100000003c0a0652c8","peakRssi":-36,"phase":0.0,"reads":36},"timestamp":"2022-09-19T09:03:26.445+0700","type":"SIMPLE"}] My Model public class TagRead{ public string TID { get; set; } } public class Hdr{ public List<TagRead> data { get; set; } } My Controller public…

VIEW QUESTION
Back To Top
Search