public async Task <IActionResult> PutCompetetionStatistic(StatisticInfoDTO statisticInfoDTO)
        {
            var statisticInfo = _mapper.Map <CompetetionStatistic>(statisticInfoDTO);
            var result        = await _subCompetetionService.UpdateCompetetionStatisticAsync(statisticInfo);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }
            return(Ok());
        }
        public async Task <Models.Competetion.CompetetionStatistic> UpdateStatisticInfo(StatisticInfoDTO statisticInfo)
        {
            Models.Competetion.CompetetionStatistic competetionStatistic = await _context.CompetetionStatistics.FindAsync(statisticInfo.CompetetionStatisticsID);

            competetionStatistic.MaleSuccessfulPercentage   = statisticInfo.MaleSuccessfulPercentage;
            competetionStatistic.FemaleSuccessfulPercentage = statisticInfo.FemaleSuccessfulPercentage;
            competetionStatistic.TotalSuccessfulPercentage  = statisticInfo.TotalSuccessfulPercentage;

            _context.Entry(competetionStatistic).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(competetionStatistic);
        }