Prakash

Prakash

  • NA
  • 258
  • 78.4k

Read Multiple list in mvc

Sep 2 2016 3:00 AM
Hello Experts
 I have 3 list which contain some value i want to save into database.
 
i have one dealer and he buy 3 producs each products have price and quantity.
so dealerd id is common for all products. 
 
below is common code 
 
var orderdata = new tbl_Order();
orderdata.Id = Guid.NewGuid();
orderdata.DealerId = new Guid(dealerValue);
tbl_Invoice.Id = Guid.NewGuid();
orderdata.BillId = tbl_Invoice.Id;
 
 
i have below 3 list for Product,amount,quantity
 
List<string> productListValues = new List<string>(); // it has 3 value
List<string> productAmountListValues = new List<string>(); // it has 3 value
List<string> productQantityListValues = new List<string>(); // it has 3 value
 
i want to read one by one product,its amonut and quantity and save to database
in mvc
 
Please help me 
Thank you 
 
 

Answers (1)