// GET: PurchasesOrderSpecial public ActionResult Index() { var model = new PurchasesOrdersViewModel() { Products = db.Products.OrderBy(p => p.Name), Providers = db.Providers.OrderBy(p => p.BusinessName), Tax = float.Parse(ConfigService.GetValue("Tax", db)) }; return(View(model)); }
// GET: Purchases public ActionResult Index() { var model = new PurchasesOrdersViewModel() { Products = db.Products.OrderBy(p => p.Name).ToList(), PurchasesOrderDetails = db.PurchaseOrderDetails.OrderBy(po => po.Id).ToList(), PurchasesOrderStatus = db.PurchaseOrderStatus.OrderBy(pos => pos.Id).ToList(), Tax = float.Parse(ConfigService.GetValue("Tax", db)) }; return(View(model)); }