//
 // GET: /Photo/
 public ActionResult Home()
 {
     IPhotoRepository repo = new FileBasedPhotoRepository();
     return View(repo.GetImages(System.Web.HttpContext.Current.Server.MapPath("~/photos/")));
 }
        public ActionResult Index(string category)
        {
            //show all photos
            //scroll through all of the files  - or

            IPhotoRepository repo = new FileBasedPhotoRepository();
            return View(category.IsEmpty() ? repo.GetImages( System.Web.HttpContext.Current.Server.MapPath("~/photos/") ) : repo.GetImages(System.Web.HttpContext.Current.Server.MapPath("~/photos/"), category));
        }