コード例 #1
0
        // GET: Admin/DatHangKH/Create
        public ActionResult Create()
        {
            var        tenKH     = khachHang.ListAll();
            SelectList ListTenKH = new SelectList(tenKH, "Id_KhachHang", "TenKhachHang");

            ViewBag.tenKH = ListTenKH;
            return(View());
        }