Exemple #1
0
        /// <summary>
        /// Finds all  City data with country Id containing specified keyword
        /// </summary>
        /// <param name="countryId"> Country Id</param>
        /// <returns>The result of the operation</returns>
        public OperationResult FindByCountryId(Int16 countryId)
        {
            IFindCityRepository repository = (IFindCityRepository)RepositoryFactory.Create(Keywords.FindCity);

            try
            {
                List <City> res = repository.FindByCountryId(countryId);
                return(new OperationResult(true, res));
            }
            catch (Exception e)
            {
                return(new OperationResult(false, e));
            }
        }