public ActionResult Delete(string id) { ViewBag.Provinces = ProvincesData.ListAll(); City city = CitiesData.GetById(id); return(View(city)); }
// GET: Provinces public ActionResult Index() { List <Province> model = new List <Province>(); model = ProvincesData.ListAll(); return(View(model)); }
// GET: City public ActionResult Index() { ViewBag.Provinces = ProvincesData.ListAll(); List <City> model = new List <City>(); model = CitiesData.ListAll(); return(View(model)); }
// GET: Add Business Record public ActionResult Add() { ViewBag.businessowners = BusinessOwnerData.ListAll(); ViewBag.businessdetails = BusinessDetailData.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(); ViewBag.Requirements = RequirementData.GetNew(); return(View()); }
// GET: Delete Business Record public ActionResult Delete(string id) { ViewBag.businessowners = BusinessOwnerData.ListAll(); ViewBag.businessdetails = BusinessDetailData.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); return(View(model)); }
// GET: Edit Business Record public ActionResult Edit(string id) { ViewBag.businessowners = BusinessOwnerData.ListAll(); ViewBag.businessdetails = BusinessDetailData.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); ViewBag.businessRecords = new HashSet <int>(model.Requirements.Select(i => i.Id)); if (model.BusinessDetail.isNew) { ViewBag.Requirements = RequirementData.GetNew(); } else { ViewBag.Requirements = RequirementData.GetRenew(); } return(View(model)); }
public ActionResult Add() { ViewBag.Provinces = ProvincesData.ListAll(); return(View()); }