コード例 #1
0
ファイル: BankController.cs プロジェクト: polykhel/BizPerms
        public ActionResult Edit(string id)
        {
            ViewBag.businesslines = BusinessLineData.ListAll();
            Bank model = BankData.GetById(id);

            return(View(model));
        }
コード例 #2
0
ファイル: BankController.cs プロジェクト: polykhel/BizPerms
        //Delete
        // GET: Delete Bank Record
        public ActionResult Delete(string id)
        {
            //ViewBag.banks = BankData.ListAll();
            //            ViewBag.businessnatures = BusinessNatureData.ListAll();
            //          ViewBag.provinces = ProvincesData.ListAll();
            //            ViewBag.cities = CitiesData.ListAll();
            //            ViewBag.districts = DistrictData.ListAll();
            //            ViewBag.barangays = BarangayData.ListAll();
            //            ViewBag.streets = StreetData.ListAll();
            //            ViewBag.businesstype = BusinessTypeData.ListAll();
            //            BusinessRecord model = BusinessRecordData.GetById(id);
            Bank model = BankData.GetById(id);

            return(View(model));
        }