예제 #1
0
        public IActionResult ImgsShopDelete(long ID_IMG)
        {
            Shop shop = new Shop(User.Identity.Name);

            IMG_Shop.Delete(ID_IMG, shop.ID_shop);


            return(RedirectToAction("ImgsShop"));
        }
        public IActionResult ImgsShopDelete(long ID_IMG, string ID_SHOP)
        {
            if (!HttpContext.User.Identity.IsAuthenticated)
            {
                return(RedirectToAction("Login", "Account"));
            }


            //Shop shop = new Shop(User.Identity.Name);

            IMG_Shop.Delete(ID_IMG, ID_SHOP);

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

            return(Redirect(referrer));
        }