Exemple #1
0
 public ActionResult AddPhotoToAlbum(IEnumerable <Guid> photos, Guid albumID)
 {
     albumrepo.AddPhotoToAlbum(photos, albumID);
     //var album = albums.FirstOrDefault(x => x.AlbumID == albumID);
     //foreach (var item in photos)
     //{
     //    album.Photos.Add(GalleryController.photos.FirstOrDefault(x => x.PhotoID == item));
     //}
     return(Content("OK!"));
 }