public ActionResult CheckZipCode(string code) { ZipCode zipcode = zipCodeRepository.GetByCode(code); if (zipcode != null) { return(Json(new { Exist = true })); } return(Json(new { Exist = false, ZipCode = HttpUtility.HtmlEncode(code) })); }
public ActionResult CheckZipCode(string code) { ZipCode zipcode = zipCodeRepository.GetByCode(code); if (zipcode != null) { return(Json(new { Exist = true })); } return(Json(new { Exist = false, ZipCode = HttpUtility.HtmlEncode(code) })); }