Example #1
0
        public async Task <IActionResult> SubmitMapCompoundImageTags([FromBody] CompoundImageTagData compoundImageTagData)
        {
            if (!await _tagsService.ValidateCompoundImageTagDataKey(compoundImageTagData))
            {
                return(Unauthorized());
            }

            await _tagsValidator.ValidateCompoundImageTagData(compoundImageTagData.Tags, compoundImageTagData.CompoundImageId);

            await _tagsService.ProcessCompoundImageTags(compoundImageTagData.CompoundImageId, compoundImageTagData.Tags);

            await _imagesService.CompleteCompoundImageProcessing(compoundImageTagData.CompoundImageId);

            await _tagsService.CheckForCompoundImageRequestFromCompoundImage(compoundImageTagData);

            return(Ok());
        }