public ActionResult AddRowToInvoiceLineTable(int ProductId, string Title, int Quantity, decimal UnitPrice) { ViewModel._InvoiceLineTableRow _InvoiceLineTableRow = new ViewModel._InvoiceLineTableRow() { Quantity = Quantity, UnitPrice = UnitPrice, Title = Title, Product = this.Service.GetEntities().Products.FirstOrDefault(m => m.ProductId == ProductId) }; return(PartialView("_InvoiceLineTableRow", _InvoiceLineTableRow)); }
public ActionResult AddRowToInvoiceLineTable(int ProductId, string Title, int Quantity, decimal UnitPrice) { ViewModel._InvoiceLineTableRow _InvoiceLineTableRow = new ViewModel._InvoiceLineTableRow() { Quantity = Quantity, UnitPrice = UnitPrice, Title = Title, Product = this.Service.GetEntities().Products.FirstOrDefault(m => m.ProductId == ProductId) }; return PartialView("_InvoiceLineTableRow", _InvoiceLineTableRow); }