public ActionResult Edit(string id) { ViewBag.businesslines = BusinessLineData.ListAll(); Bank model = BankData.GetById(id); return(View(model)); }
//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)); }