public async Task <IActionResult> Update(int id)
        {
            VideoGame game =
                await VideoGameDB.GetGameById(id, _context);

            return(View(game));
        }
        public async Task <IActionResult> Add(int id)
        {
            VideoGame g = await VideoGameDB.GetGameById(id, _context);


            CartHelper.Add(_httpAccessor, g);

            return(RedirectToAction("Index", "Library"));

            //Set up cookie
            //CookieOptions options = new CookieOptions()
            //{
            //    Secure = true,
            //    MaxAge = TimeSpan.FromDays(365) //A whole year
            //};

            //_httpAccessor.HttpContext.Response.Cookies.Append("CartCookie", data, options);
        }