public async Task <IActionResult> ImgsShop(ImgsShopVM VM)
        {
            if (!HttpContext.User.Identity.IsAuthenticated)
            {
                return(RedirectToAction("Login", "Account"));
            }



            if (ModelState.IsValid)
            {
                string URL_foto = await LoadIMG("vitrina", VM.IMG_formFile);

                if (!String.IsNullOrEmpty(URL_foto))
                {
                    IMG_Shop iMG_Shop = new IMG_Shop
                    {
                        ID_SHOP = VM.ID_SHOP,
                        Type    = "VITRINA",
                        Url     = URL_foto
                    };

                    iMG_Shop.Create();
                }
            }

            var referrer = Request.Headers["Referer"];

            return(Redirect(referrer));
            //return RedirectToAction("ImgsShop", "admpanel");
        }
        public async Task <IActionResult> ImgsShop(ImgsShopVM VM)
        {
            if (ModelState.IsValid)
            {
                string URL_foto = await LoadIMG("vitrina", VM.IMG_formFile);

                if (!String.IsNullOrEmpty(URL_foto))
                {
                    IMG_Shop iMG_Shop = new IMG_Shop
                    {
                        ID_SHOP = VM.ID_SHOP,
                        Type    = "VITRINA",
                        Url     = URL_foto
                    };

                    iMG_Shop.Create();
                }
            }

            return(RedirectToAction("ImgsShop"));
        }