// GET: Task/Delete/5 public PartialViewResult AppendLine(int maxRowId, int invoiceId) { InvLineTest invLineTest = new InvLineTest(); invLineTest.InvoiceID = invoiceId; invLineTest.InvoiceLineId = -1; @ViewBag.RowId = maxRowId; return(PartialView("_InvoiceLine", invLineTest)); }
public PartialViewResult ReplaceLine(int rowId, int invoiceId, int invoiceLineItemId, String itemDescription, String itemName, int quantity, decimal value) { InvLineTest invLineTest = new InvLineTest(); invLineTest.ItemName = itemName; invLineTest.ItemDescription = itemDescription; invLineTest.Quantity = quantity; invLineTest.Value = value; invLineTest.InvoiceID = invoiceId; invLineTest.InvoiceLineId = invoiceLineItemId; @ViewBag.RowId = rowId; return(PartialView("_InvoiceLine", invLineTest)); }