Exemplo n.º 1
0
        public async Task <ParkEventModel> GetParkEventModelAsync(int parkId, DateTime date)
        {
            var result = await _parkRepository.GetEventByParkIdByDateAsync(parkId, date);

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

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