Пример #1
0
        public async Task <ActionResult> SetTags(List <TagMatchDto> tagMatches)
        {
            var userId = HttpContext.GetUserId();

            if (!userId.HasValue)
            {
                return(Unauthorized());
            }

            await _tagsRepository.SetForUser(userId.Value, tagMatches);

            return(Ok());
        }