//GET: Create public ActionResult Create() { ViewBag.OutletId = purchaseBll.GetOutlet(); ViewBag.EmployeeId = purchaseBll.GetEmployee(); ViewBag.ItemId = purchaseBll.GetItem(); ViewBag.Supplier = purchaseBll.Supplier(); return(View()); }
//GET: Create public ActionResult Create() { ViewBag.OutletId = purchaseBll.GetOutlet(); ViewBag.EmployeeId = purchaseBll.GetEmployee(); //TO DO: change to get the currently logged in Employee ViewBag.ItemId = purchaseBll.GetItem(); ViewBag.Supplier = purchaseBll.Supplier(); ViewBag.PurchaseCode = purchaseBll.GenerateAutoCode(); return(View()); }