コード例 #1
0
 public ActionResult Addresses(int streetId)
 {
     RepositoryAddress repository = new RepositoryAddress();
     SelectList addresses = repository.GetAddressByStreetId(streetId);
     return Json(addresses);
 }
コード例 #2
0
 public ActionResult StreetsJson()
 {
     RepositoryAddress repository = new RepositoryAddress();
     SelectList streets = repository.GetStreets();
     return Json(streets);
 }
コード例 #3
0
 public ActionResult Address(int streetId, string name)
 {
     RepositoryAddress repository = new RepositoryAddress();
     AddressService.AddressModel model = repository.GetAddressByAddressId(streetId, name);
     return Json(model);
 }
コード例 #4
0
 public ActionResult Streets(int id)
 {
     ViewBag.ViewId = id;
     RepositoryAddress repository = new RepositoryAddress();
     ViewBag.Streets = repository.GetStreets();
     return PartialView("System_Address");
 }