Esempio n. 1
0
        public async Task <IActionResult> MakePhotoMain(int photoId, int userId)
        {
            if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }

            return(Ok(await _photosService.MakePhotoMain(photoId, userId)));
        }