public JsonResult AutoComplte(string address, int countryId)
        {
            List <EntityPredictions> result = new List <EntityPredictions>();

            result = _IUserInfo.User_AutoComplete(address, countryId);
            if (result == null || result.Count == 0)
            {
                result = autoCompleteFeature.SearchString(address,
                                                          _ICountry.Admin_GetCountry().Where(x => x.CountryId == countryId).Select(y => y.CountryShortName)
                                                          .FirstOrDefault());
            }

            return(jsonReturn.JsonResult <EntityPredictions>(result));
        }
Beispiel #2
0
        /// <summary>
        /// Getting the admin users
        /// </summary>
        /// <returns></returns>
        public JsonResult Admin_GetCountry()
        {
            List <MasterCountryDTO> getResult = _ICountry.Admin_GetCountry();

            return(base.jsonReturn.JsonResult <MasterCountryDTO>(getResult));
        }