Example #1
0
        public ActionResult Create(ComicStoreModelView store)
        {
            try
            {
                var stor = new ET.ComicStore.Library.ComicStore
                {
                    Location = store.Location
                };

                ComicDB.AddStore(stor);

                int stores = ComicDB.GetStores().Last().StoreId;



                ComicDB.AddInventory(stores);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }