Пример #1
0
        /// <summary>
        /// Gets the point of interest.
        /// </summary>
        /// <param name="poIId">The po i identifier.</param>
        /// <returns>PointOfInterest.</returns>
        public PointOfInterest GetPointOfInterest(string poIId)
        {
            var res = new PointOfInterest()
            {
                Id = poIId
            };

            try
            {
                res = Provider <PointOfInterest> .GetById(poIId) ??
                      Provider <PointOfInterest> .Save(res);

                return(res);
            }
            catch (Exception exception)
            {
                res.AddError(exception.Message);
                _logger.Error(exception.GetCombinedMessages);
                return(res);
            }
        }