/// <summary> /// Get list of Plays /// </summary> /// <returns>list of Plays</returns> public async Task <IEnumerable <PlayDto> > GetPlays() { IEnumerable <Play> playList = await _repo.GetPlays(); List <PlayDto> playDtos = new List <PlayDto>(); foreach (var play in playList) { PlayDto playDto = _mapper.ConvertToPlayDto(play); playDtos.Add(playDto); } return(playDtos); }