Exemple #1
0
        private async Task <EventModel> GetModel(Guid eventId)
        {
            var result = await _eventManagementService.GetFullEventAsync(eventId);

            var model = Mapper.Map <EventModel>(result);

            if (model.Places == null)
            {
                model.Places = new List <FourSquareVenueModel>();
            }
            await PopulateVenueDetails(model);

            if (model.Dates == null)
            {
                model.Dates = GetDefaultDatesModel();
            }

            return(model);
        }