コード例 #1
0
 public ActionResult Edit(string set)
 {
     string mediaKeys = (string.IsNullOrEmpty(set) ? string.Empty : persistentCollectionService.Get(set));
     EditPhotoView view = new EditPhotoView { MediaKeys = mediaKeys };
     view = SetAuthorizationAndUrlService(view);
     return View(view);
 }
コード例 #2
0
        public ActionResult Edit(Media media, SavedPhotoView savedPhotoView)
        {
            media = Mapper.Map(savedPhotoView, media);
            _mediaRepository.Save(media);

            EditPhotoView view = new EditPhotoView { UIMessage = "Photo details saved."};
            view = SetAuthorizationAndUrlService(view);
            return View(view);
        }