Ejemplo n.º 1
0
        public ViewResult EditPhoto(Guid id)
        {
            var alb    = _photoRepository.GetAlbums();
            var photos = _photoRepository.photo(id);

            ViewBag.Albumsid = new SelectList(alb, "id", "Name", photos.Albumsid);

            return(View(photos));
        }