public ActionResult Add() { var UserId = User.Identity.GetUserId(); ViewBag.ListOutlet = new SelectList(EmployeeOutletDAL.GetDataByID(int.Parse(UserId)), "OutletID", "OutletName"); ViewBag.ListSupplier = new SelectList(SuppliersDAL.GetData(), "ID", "Name"); return(PartialView("Add")); }
// GET: TransferStock public ActionResult Index() { ViewBag.ListOutlet = new SelectList(OutletDAL.GetData(), "ID", "OutletName"); var UserId = User.Identity.GetUserId(); ViewBag.Transfer = new SelectList(EmployeeOutletDAL.GetDataByID(int.Parse(UserId)), "OutletID", "OutletName"); return(View()); }
public ActionResult Add() { var UserId = User.Identity.GetUserId(); ViewBag.Transfer = new SelectList(EmployeeOutletDAL.GetDataByID(int.Parse(UserId)), "OutletID", "OutletName"); AdjustmentViewModel model = new AdjustmentViewModel(); return(PartialView("Add", model)); }
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)); }