Example #1
0
        public async Task <ParkModel> GetParkAsync(string parkName)
        {
            var result = await _parkRepository.GetParkByNameAsync(parkName);

            if (result == null)
            {
                return(null);
            }

            return(_mapper.Map <ParkModel>(result));
        }