Esempio n. 1
0
        public ActionResult AllPhotos()
        {
            var photos = _photoRepository.AllPhotos();

            if (photos.Count > 0)
            {
                return(View(photos));
            }
            else
            {
                return(View());
            }
        }