public async Task <ActionResult> DeleteConfirmed(string id)
        {
            Game_Inventory game_Inventory = await db.Game_Inventory.FindAsync(id);

            db.Game_Inventory.Remove(game_Inventory);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "productId,game_title,game_genre,age_restiction_rating,date_release,game_owners,game_ratings,in_Stock,game_price,modable_game,type_of_game")] Game_Inventory game_Inventory)
        {
            if (ModelState.IsValid)
            {
                db.Entry(game_Inventory).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(game_Inventory));
        }
        // GET: Game_Inventory/Delete/5
        public async Task <ActionResult> Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Game_Inventory game_Inventory = await db.Game_Inventory.FindAsync(id);

            if (game_Inventory == null)
            {
                return(HttpNotFound());
            }
            return(View(game_Inventory));
        }