public ActionResult Addresses(int streetId) { RepositoryAddress repository = new RepositoryAddress(); SelectList addresses = repository.GetAddressByStreetId(streetId); return Json(addresses); }
public ActionResult StreetsJson() { RepositoryAddress repository = new RepositoryAddress(); SelectList streets = repository.GetStreets(); return Json(streets); }
public ActionResult Address(int streetId, string name) { RepositoryAddress repository = new RepositoryAddress(); AddressService.AddressModel model = repository.GetAddressByAddressId(streetId, name); return Json(model); }
public ActionResult Streets(int id) { ViewBag.ViewId = id; RepositoryAddress repository = new RepositoryAddress(); ViewBag.Streets = repository.GetStreets(); return PartialView("System_Address"); }