public async Task<ActionResult> Add(AddCompetitionSportViewModel competitionSportModel)
        {
            var competitionSport = new DomainClasses.CompetitionSport
            {
                Gender = competitionSportModel.Gender,
                MaxCompetitors = competitionSportModel.MaxCompetitors,
                MaxTechnicalStaff = competitionSportModel.MaxTechnicalStaffs,
                SportId = competitionSportModel.SportId,
                SportDetailId = competitionSportModel.SportDetailId,
                SportCategoryId = competitionSportModel.SportCategoryId,
                CompetitionId = competitionSportModel.CompetitionId,
                Rule = competitionSportModel.Rule,
                IsIndividual = competitionSportModel.IsIndividual,
                HasRule = competitionSportModel.HasRule,
            };

            _competitionSportService.Add(competitionSport);

            await _dbContext.SaveChangesAsync();

            return Json(competitionSport.Id);
        }
        public async Task<ActionResult> Edit(AddCompetitionSportViewModel competitionSportModel)
        {
            var selectedCompetitionSport = await _competitionSportService.Find(competitionSportModel.Id);

            selectedCompetitionSport.IsIndividual = competitionSportModel.IsIndividual;

            selectedCompetitionSport.MaxTechnicalStaff = competitionSportModel.MaxTechnicalStaffs;

            selectedCompetitionSport.MaxCompetitors = competitionSportModel.MaxCompetitors;

            selectedCompetitionSport.HasRule = competitionSportModel.HasRule;

            selectedCompetitionSport.Rule = competitionSportModel.Rule;

            await _dbContext.SaveChangesAsync();

            return new HttpStatusCodeResult(HttpStatusCode.OK);
        }