public void Window_Loaded(object sender, RoutedEventArgs e)
 {
     //btnAddComicWindow.IsEnabled = false;
     hideAllTabs();
     RefreshComicsAvailable();
     _comics = _comicManager.RetrieveAvailableComics(true);
     dgComics.ItemsSource = _comics;
 }
Ejemplo n.º 2
0
        // 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));
        }
Ejemplo n.º 3
0
 // GET: Comics
 public ActionResult Index()
 {
     return(View(_comicManager.RetrieveAvailableComics(true)));
 }