public JsonResult CheckCountryNameExist(string countryName) { bool check = false; CountryViewModel cViewModel = new CountryViewModel(); try { check = _cRepo.CheckCountryNameExist(countryName); Logger.Debug("Country Controller CheckCountryNameExist"); } catch (Exception ex) { Logger.Error("Country Controller - CheckCountryNameExist" + ex.Message); } return(Json(check, JsonRequestBehavior.AllowGet)); }
public bool CheckCountryNameExist(string countryName) { return(_countryRepo.CheckCountryNameExist(countryName)); }