public void Window_Loaded(object sender, RoutedEventArgs e) { //btnAddComicWindow.IsEnabled = false; hideAllTabs(); RefreshComicsAvailable(); _comics = _comicManager.RetrieveAvailableComics(true); dgComics.ItemsSource = _comics; }
// GET: Comics/Remove/5 public ActionResult RemoveFromPull(int?id) { ComicManager _comicManager = new ComicManager(); if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var comic = _comicManager.RetrieveAvailableComics(true).Find(c => c.ComicID == id); if (comic == null) { return(HttpNotFound()); } return(View(comic)); }
// GET: Comics public ActionResult Index() { return(View(_comicManager.RetrieveAvailableComics(true))); }