/**
   * This is an action method to query all states according to country id
   *
   * @param countryId
   * @return
   * @throws Exception
   */
  @RequestMapping("/queryStates")
  public @ResponseBody List<State> queryStates(@RequestParam Integer countryId) throws Exception {

    List<State> states = testService.queryAllStates(countryId);
    return states;
  }
  /**
   * This is an action method to query all cities according to state id
   *
   * @param stateId
   * @return
   * @throws Exception
   */
  @RequestMapping("/queryCities")
  public @ResponseBody List<City> queryCities(@RequestParam Integer stateId) throws Exception {

    List<City> cities = testService.queryAllCities(stateId);
    return cities;
  }
  /**
   * This is an action method to query all countries
   *
   * @return
   * @throws Exception
   */
  @RequestMapping("/queryCountries")
  public @ResponseBody List<Country> queryCountries() throws Exception {

    List<Country> countries = testService.queryAllCountries();
    return countries;
  }