public ActionResult Delete(string id) { ViewBag.Cities = CitiesData.ListAll(); District model = DistrictData.GetById(id); return(View(model)); }
// GET: District public ActionResult Index() { ViewBag.Cities = CitiesData.ListAll(); List <District> model = DistrictData.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 Cities() { List <City> cits = CitiesData.ListAll(); return(Json(new { cits, isSuccess = true }, JsonRequestBehavior.AllowGet)); }
public ActionResult Add() { ViewBag.Cities = CitiesData.ListAll(); return(View()); }