예제 #1
0
        public ActionResult Edit(int Id)
        {
            var UserId = User.Identity.GetUserId();

            ViewBag.ListOutlet   = new SelectList(EmployeeOutletDAL.GetDataByID(int.Parse(UserId)), "OutletID", "OutletName");
            ViewBag.ListSupplier = new SelectList(SuppliersDAL.GetData(), "ID", "Name");
            ListPurchaseOrderViewModel model = PurchaseOrderDAL.GetDataByIdPO(Id);

            return(PartialView("Edit", model));
        }
예제 #2
0
        public ActionResult Detail(int Id)
        {
            ListPurchaseOrderViewModel model = PurchaseOrderDAL.GetDataByIdPO(Id);

            return(PartialView("Detail", model));
        }