Example #1
0
        public IActionResult Create()
        {
            var model = new UploadImageModel();

            model.AllAlbums = albumsRepository.Get();
            model.Albums    = new List <string>();
            return(View(ImageForm, model));
        }
Example #2
0
 public IActionResult Index()
 {
     return(View(albumsRepository.Get().OrderBy(a => a.Title)));
 }