public ActionResult CheckCountryExist(CountryViewModel CountryVM) { bool exists = _contryBusiness.CheckCountryExist(Mapper.Map <CountryViewModel, Country>(CountryVM)); if (exists) { return(Json("<p><span style='vertical-align: 2px'>Country already is in use </span> <i class='fa fa-times' style='font-size:19px; color: red'></i></p>", JsonRequestBehavior.AllowGet)); } return(Json(true, JsonRequestBehavior.AllowGet)); }