コード例 #1
0
        public async Task <SportDTO> CreateSport(SportDTO sport)
        {
            var mappedSport   = _mapper.Map <Sport>(sport);
            var returnedSport = await _sportRepository.CreateSport(mappedSport);

            return(_mapper.Map <SportDTO>(returnedSport));
        }