示例#1
0
        public async Task <IEnumerable <ShowDomainModel> > GetFutureShows()
        {
            var shows = await _showsRepository.GetFutureShows();

            return(shows.Select(show => new ShowDomainModel()
            {
                Id = show.Id,
                AuditoriumId = show.AuditoriumId,
                PieceId = show.PieceId,
                ShowTime = show.ShowTime,
                TicketPrice = show.TicketPrice
            }));
        }