my controller code is correct ,values are not coming from view.if i un comment code in controller multiple values inserting
but i want to get multiple table row count from view to tba parameter
public JsonResult InsertReceipts(List tba)
{
using (TestDemoEntities dc = new TestDemoEntities())
{
//List tba = new List { new tblTowardsBillsAdjusted { DiscountAccount1="10",DiscountAmount1=10,RefNumber="ref44" },
// new tblTowardsBillsAdjusted { DiscountAccount1="100",DiscountAmount1=10,RefNumber="ref45" } };
foreach (var i in tba)
{
dc.tblTowardsBillsAdjusteds.Add(i);
}
dc.SaveChanges();
}
view
| Customer | Pendings | Pending Value |
|---|---|---|
{{ReceiptsViewModel.PendingAmount}} |
angular
$scope.rvm = [{}];
$scope.GetAccountBalance = function () {
$scope.rvm.push({
});
}
am able to insert this using mvc razor,but i want using angular and mvc
if you want i will post that code
Bhavik PatelPosted Sep 18, 2016, 12:36 AM