示例#1
0
        public ActionResult Index()
        {
            var viewModel = new ViewModels.客戶聯絡人.ReadViewModel();

            using (_db = new Models.客戶資料Entities())
            {
                var data = _db.客戶聯絡人.Where(x => x.刪除 == false).ToList();

                viewModel.CustomerContactList = data;
            }

            return(View(viewModel));
        }
示例#2
0
 public ActionResult Index(ViewModels.客戶聯絡人.ReadViewModel viewModel)
 {
     return(View(viewModel));
 }