コード例 #1
0
        public ActionResult Edit(int id)
        {
            var doanhNghiepBDS = _context.DoanhNghiepBDSs.SingleOrDefault(x => x.Id == id);

            if (doanhNghiepBDS == null)
            {
                return(HttpNotFound());
            }

            var viewModel = new ThongTinDNViewModel(doanhNghiepBDS);

            return(View("ThongTinDNForm", viewModel));
        }
コード例 #2
0
        public ViewResult New()
        {
            var viewModel = new ThongTinDNViewModel();

            return(View("ThongTinDNForm", viewModel));
        }