public JsonResult GetCountryNameIsExist(string countryName) { CountryBLL objCountryBLL = new CountryBLL(); bool exsits = objCountryBLL.GetCountryNameIsExist(countryName); if (exsits) { return(Json(false, JsonRequestBehavior.AllowGet)); } else { return(Json(true, JsonRequestBehavior.AllowGet)); } }