public async Task PostCreateEffect_CallEffectService()
        {
            const int subCategoryId          = 12;
            var       createEffectRequest    = new CreateEffectRequest();
            var       expectedEffectResponse = new EffectResponse();
            var       effect = new Effect {
                Id = 42
            };

            _effectService.CreateEffectAsync(_executionContext, subCategoryId, createEffectRequest)
            .Returns(effect);
            _mapper.Map <EffectResponse>(effect)
            .Returns(expectedEffectResponse);

            var result = await _effectSubCategoriesController.PostCreateEffectAsync(_executionContext, subCategoryId, createEffectRequest);

            result.StatusCode.Should().Be(201);
            result.Value.Should().Be(expectedEffectResponse);
        }
        public async Task <CreatedActionResult <EffectResponse> > PostCreateEffectAsync(
            [FromServices] NaheulbookExecutionContext executionContext,
            [FromRoute] int subCategoryId,
            CreateEffectRequest request
            )
        {
            try
            {
                var effect = await _effectService.CreateEffectAsync(executionContext, subCategoryId, request);

                return(_mapper.Map <EffectResponse>(effect));
            }
            catch (ForbiddenAccessException ex)
            {
                throw new HttpErrorException(StatusCodes.Status403Forbidden, ex);
            }
        }