public async Task<MatchDto> CreateAsync(MatchDto dto) { var match = _mapper.Map<Match>(dto); match.ClubId = await _clubService.GetIdByNameAsync(dto.ClubName); match = await _matchRepository.AddAsync(match); await _matchRepository.SaveChangesAsync(); dto = _mapper.Map<MatchDto>(match); return dto; }
public async Task<MatchDto> UpdateAsync(MatchDto dto) { var match = await _matchRepository.GetByIdAsync(dto.Id); throw new NotImplementedException(); }