public IActionResult Create() { var model = new UploadImageModel(); model.AllAlbums = albumsRepository.Get(); model.Albums = new List <string>(); return(View(ImageForm, model)); }
public IActionResult Index() { return(View(albumsRepository.Get().OrderBy(a => a.Title))); }