Exemplo n.º 1
0
        public ActionResult GetAddressInfo()
        {
            var contactInformation = _contactInfoService.GetTypeAddress((int)TypeAdress.Current);

            var contactInformationLocalize = contactInformation.ToModel();

            return(PartialView(contactInformationLocalize));
        }
Exemplo n.º 2
0
        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);
        }