public async Task <IActionResult> Index() { var list = await _stadiumService.GetAllAsync(); List <StadiumVM> listVM = _mapper.Map <List <StadiumVM> >(list); return(View(listVM)); }
public async Task <IEnumerable <StadiumDTO> > Handle(GetAllStadiumsQuery request, CancellationToken cancellationToken) => await _service.GetAllAsync();