public ActionResult Edit(int id) { var model = HoaDonService.GetById(id); ViewBag.CreateBy = new SelectList(HoaDonService.GetNhanvien(), "ID", "FullName", model.CreateBy); //TODO return(View("CreateEdit", model)); }
public ActionResult Detail(int id) { ViewBag.Type = WebUtil.GetEnumSelectList <Notifi_Type>(); ViewBag.UserCreate = new SelectList(HoaDonService.GetNhanvien(), "ID", "FullName"); var model = NotifyService.GetById(id); //TODO return(View("Detail", model)); }
// GET: TraHang public ActionResult Index() { ViewBag.CreateBy = new SelectList(HoaDonService.GetNhanvien(), "ID", "FullName"); return(View()); }