public IActionResult deleteParticipation(int id)
        {
            var claimsIdentity = this.User.Identity as ClaimsIdentity;

            try
            {
                if (!appSettingsService.canEnter())
                {
                    throw new AppException("Akcja obecnie niedozwolona");
                }
                Participation participation = contestService.getParticipationById(id);
                if (participation == null)
                {
                    throw new AppException("Nie odnaleziono danego połączenia");
                }
                userService.CanUserAccessDog(claimsIdentity, participation.DogId);
                contestService.deleteParticipation(participation);
                return(Ok());
            }
            catch (Exception e)
            {
                return(BadRequest(new { message = e.Message }));
            }
        }