示例#1
0
        public async Task <ActionResult <IEnumerable <PlatformReturnDto> > > GetAllPlatforms()
        {
            var platformItems = await _repo.GetAllPlatforms();

            var platformMaps = _mapper.Map <IEnumerable <PlatformReturnDto> >(platformItems);

            return(Ok(platformMaps));
        }