//Invoke is de entrypoint. Van hieruit kunnen we bepalen welke View we willen instantiëren
        public IViewComponentResult Invoke()
        {
            UserStatusModel userStatus = SessionController.CheckLoggedInStatus(this.HttpContext);

            if (userStatus.LoggedIn == false)
            {
                return(View("NotLoggedIn"));
            }

            else
            {
                return(View("LoggedIn", userStatus));
            }
        }
        public IActionResult RemoveFromShoppingcart(int fld_offeredserviceid)
        {
            //Check if user is logged in
            UserStatusModel status = SessionController.CheckLoggedInStatus(this.HttpContext);

            if (status.LoggedIn == true)
            {
                //If user is logged in, remove the item from the database as well
                DatabaseController.RemoveFromShoppingCart(fld_offeredserviceid, status.userId);
            }
            string currentKey = "SC" + fld_offeredserviceid;

            Response.Cookies.Delete(currentKey);

            return(RedirectToAction("ShoppingCart", "ShoppingCart"));
        }