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)); }
public ActionResult Detail(int Id) { ListPurchaseOrderViewModel model = PurchaseOrderDAL.GetDataByIdPO(Id); return(PartialView("Detail", model)); }