Esempio n. 1
0
        public JsonResult GetAddresses(AddressSearchViewModel addressSearchViewModel)
        {
            IEnumerable <AddressModel> models = searchManager.GetAddresses(
                addressSearchViewModel.PostCode,
                addressSearchViewModel.BuildingNumber);

            return(Json(models, JsonRequestBehavior.AllowGet));
        }