Exemplo n.º 1
0
 public JsonResult getaddress(string id)
 {
     if (Request.IsAjaxRequest())
     {
         Address.Business.Entities.Address address = _addressRes.Address_GetDetailWithChildren(id);
         return(Json(address));
     }
     else
     {
         return(Json(string.Empty));
     }
 }
Exemplo n.º 2
0
 public ActionResult detail(string id)
 {
     if (Request.IsAjaxRequest())
     {
         Address.Business.Entities.Address address = _addressRes.Address_GetDetailWithHistory(id, User.Identity.Name);
         return(PartialView("dialog/detail", address));
     }
     else
     {
         return(new EmptyResult());
     }
 }