post list of products instead of single product in post method odata
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
// POST: odata/Products public IHttpActionResult Post(\[FromBody\] product Products) { ... } // POST: odata/Products public IHttpActionResult Post(\[FromBody\] List Products) { ... }
when I used List I got empty products. How to handle it?
-
// POST: odata/Products public IHttpActionResult Post(\[FromBody\] product Products) { ... } // POST: odata/Products public IHttpActionResult Post(\[FromBody\] List Products) { ... }
when I used List I got empty products. How to handle it?
-
// POST: odata/Products public IHttpActionResult Post(\[FromBody\] product Products) { ... } // POST: odata/Products public IHttpActionResult Post(\[FromBody\] List Products) { ... }
when I used List I got empty products. How to handle it?
You already posted this yesterday: How to post array of objects to oData - Web Development Discussion Boards[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer