Beispiel #1
0
 public ActionResult CreateInvoiceComplete(ViewModel.CreateInvoiceComplete CreateInvoiceComplete)
 {
     return(Json(new {
         success = true,
         message = "Order updated successfully"
     },
                 JsonRequestBehavior.AllowGet));
 }
Beispiel #2
0
 public ActionResult CreateInvoiceComplete()
 {
     ViewModel.CreateInvoiceComplete mCreateInvoiceComplete = new ViewModel.CreateInvoiceComplete();
     mCreateInvoiceComplete.Customers = this.Service.GetEntities().Customers.ToList().Select(u => new SelectListItem
     {
         Text  = u.Name,
         Value = u.CustomerId.ToString()
     }).ToList();
     mCreateInvoiceComplete.Products = this.Service.GetEntities().Products.ToList().Select(u => new SelectListItem
     {
         Text  = u.Title,
         Value = u.ProductId.ToString()
     }).ToList();
     return(View(mCreateInvoiceComplete));
 }
 public ActionResult CreateInvoiceComplete()
 {
     ViewModel.CreateInvoiceComplete mCreateInvoiceComplete = new ViewModel.CreateInvoiceComplete();
     mCreateInvoiceComplete.Customers = this.Service.GetEntities().Customers.ToList().Select(u => new SelectListItem
     {
         Text = u.Name,
         Value = u.CustomerId.ToString()
     }).ToList();
     mCreateInvoiceComplete.Products = this.Service.GetEntities().Products.ToList().Select(u => new SelectListItem
     {
         Text = u.Title,
         Value = u.ProductId.ToString()
     }).ToList();
     return View(mCreateInvoiceComplete);
 }