Пример #1
0
        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));
        }
Пример #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));
        }