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); }
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); }