Esempio n. 1
0
        // 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));
        }
Esempio n. 2
0
        // 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));
        }