Example #1
0
 // GET: Items/Create
 public ActionResult Create()
 {
     ViewBag.OutletId   = saleBll.GetOutlet();
     ViewBag.EmployeeId = saleBll.GetEmployee();
     ViewBag.ItemId     = saleBll.GetItem();
     return(View());
 }
        // GET: Items/Create
        public ActionResult Create()
        {
            ViewBag.OutletId   = _saleBll.GetOutlet();
            ViewBag.EmployeeId = _saleBll.GetEmployee();
            ViewBag.ItemId     = _saleBll.GetItem();
            var tax = db.BusinessRules.Select(b => b.VAT).FirstOrDefault();

            ViewBag.VAT      = tax;
            ViewBag.SaleCode = _saleBll.GenerateAutoCode();
            return(View());
        }