コード例 #1
0
        public ActionResult Index()
        {
            SelectList selectList = new SelectList(customerType.GetAll().ToList(), "Id", "類別名稱");

            ViewBag.CustType = selectList;

            return(View(customer.GetAll()));
        }
コード例 #2
0
 // GET: 客戶銀行資訊/Create
 public ActionResult Create()
 {
     ViewBag.客戶Id = new SelectList(o客戶資料Repository.GetAll(), "Id", "客戶名稱");
     return(View());
 }
コード例 #3
0
 // GET: CustomerContactPerson/Create
 public ActionResult Create()
 {
     ViewBag.客戶Id = new SelectList(customer.GetAll(), "Id", "客戶名稱");
     return(View());
 }
コード例 #4
0
 public ActionResult Index(string KeyWord)
 {
     return(View(oRepository.GetAll(KeyWord)));
 }