I have a Generic List containing Objects of a OrderCartItem Like below:
List<> cartList;
public class OrderCartItem
{
public int CartId { get; set; }
public int UserId { get; set; } public int CategoryId { get; set; } public int ProductId { get; set; } public Object ProductImage { get; set; } public int Quantity { get; set; } public string ProductName { get; set; } public int Price { get; set; } public int TotalAmount { get; set; } }
I want generic cartList to be submitted to a PHP Function which will then push all the order items in orderdetail table in mysql.
Anybody can plz help how to pass the generic list to php function and how to write the php function.