Ejemplo n.º 1
0
        /// <summary>
        /// Finds all  City data with city Location Lat containing specified keyword
        /// </summary>
        /// <param name="cityLocationLat"> City Location Lat</param>
        /// <returns>The result of the operation</returns>
        public OperationResult FindByCityLocationLat(float cityLocationLat)
        {
            IFindCityRepository repository = (IFindCityRepository)RepositoryFactory.Create(Keywords.FindCity);

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