Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Passing Generic List to a PHP Function

$
0
0

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.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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