public async Task SaveMatch(MatchDto matchDto, string adminKey)
        {
            Match match = m_MatchMapper.MapFromDto(matchDto).Result;
            await m_MatchRepository.Persist(match).ConfigureAwait(false);

            m_UserService.UpdateUserRatings(match);
        }
 public async Task<Match> MapFromDto(MatchDto matchDto)
 {
     return new Match
     {
         Id = matchDto.Id,
         VenueId = matchDto.VenueId,
         BoxerOneId = matchDto.BoxerOneId,
         BoxerTwoId = matchDto.BoxerTwoId,
         StartDate = matchDto.StartDate,
         Description = matchDto.Description,
         WinnerId = matchDto.WinnerId != 0 ? matchDto.WinnerId : null
     };
 }
 public async Task<HttpResponseMessage> Post(MatchDto match)
 {
     await m_MatchService.SaveMatch(match).ConfigureAwait(false);
     return Request.CreateResponse(HttpStatusCode.Created);
 }
 public async Task<HttpResponseMessage> Update(MatchDto match, string adminKey)
 {
     await m_MatchService.SaveMatch(match, adminKey).ConfigureAwait(false);
     return Request.CreateResponse(HttpStatusCode.Created);
 }