Ejemplo n.º 1
0
        public ActionResult _EditPhoto(string spaceKey, long photoId)
        {
            Photo photo = photoService.GetPhoto(photoId);

            ViewData["tags"] = tagService.GetItemInTagsOfItem(photoId).Select(n => n.TagName);
            return(View(photo.AsPhotoEditModel()));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 相片局部页
        /// </summary>
        public ActionResult _PhotoItem(string spacekey, long photoId = 0)
        {
            Photo photo = photoService.GetPhoto(photoId);

            if (photo == null)
            {
                return(View());
            }
            //获取当前相册的封面ID
            ViewData["CoverId"] = photoService.GetAlbum(photo.AlbumId).CoverId;
            return(View(photo.AsPhotoEditModel()));
        }