hii..
i m working on vs12 and mysql db.
there are 2 tables in db..imagebuy and imagebuydetail.
imagebuy contain imagebuyid,userid,imagebuydate,totalammount,banktransactionid,checkout etc
imagebuydetail contain imagebuydetailid,imagebuyid(fk of imagebuy),imageid,discountprice,subscriptionid etc.
Now i want create list<> for imagebuydetail and pass this list <> to webservice.
Create a webservice which pass all parameters of imagebuy and list<> of imagebuydetail.
[WebMethod]
public bool CommonImageBuyDetail(int userid, DateTime imagebuydate, double totalammount, int banktransactionid, string checkout,List<imagebuydetail>imagelist)
{
imagebuy ib = new imagebuy(-1, userid, Convert.ToDateTime(imagebuydate), totalammount, banktransactionid, checkout);
a = ib.Insert();
foreach (imagebuydetail imgbdid in imageList)
{
a = t.imageDetail();
}
return a;