public ActionResult GetAddressInfo() { var contactInformation = _contactInfoService.GetTypeAddress((int)TypeAdress.Current); var contactInformationLocalize = contactInformation.ToModel(); return(PartialView(contactInformationLocalize)); }
public JsonResult GetContactAddress() { var contactInformation = _contactInfoService.GetTypeAddress((int)TypeAdress.Current); var contactInformationLocalize = contactInformation.ToModel(); var jsonResult = Json( new { success = true, list = this.RenderRazorViewToString("_PostDetail.Address", contactInformationLocalize) }, JsonRequestBehavior.AllowGet); return(jsonResult); }