예제 #1
0
        public List <ShowEventViewModel> GetShowEventViewModelList()
        {
            var userId    = _authInfrastructure.GetCurrentUserId();
            var eventList = _eventsRepository.GetCurrentUserEventList(userId);
            var showEventViewModelList = eventList.Select(x =>
            {
                ShowEventViewModel showEventViewModel = _mappingInfrastructure.MapEventToShowEventFormViewModel(x);
                return(showEventViewModel);
            }).ToList();

            return(showEventViewModelList);
        }