Exemplo n.º 1
0
        /// <summary>
        /// Change photo visibility
        /// </summary>
        /// <param name="photoId">Photo's Id</param>
        public async Task <ActionResult> ChangeVisibility(string photoId)
        {
            var photo = await _photoService.GetPhotoByIdAsync(photoId);

            await _photoService.ChangeVisibilityAsync(photoId);

            return(RedirectToAction("UserGallery"));
        }