public IActionResult editContest(int id, [FromBody] ContestDetailsDTO newContest)
        {
            var claimsIdentity = this.User.Identity as ClaimsIdentity;

            try
            {
                userService.IsUserAnOrganizator(claimsIdentity);
                if (!appSettingsService.canEnter())
                {
                    throw new AppException("Akcja obecnie niedozwolona");
                }

                var response = contestService.editContest(id, newContest);
                if (response == null)
                {
                    throw new AppException("Błąd edycji konkursu");
                }
                return(Ok());
            }
            catch (Exception e)
            {
                return(BadRequest(new { message = e.Message }));
            }
        }