예제 #1
0
        public IActionResult ImportProduct()
        {
            if (User.Identity.Name != AuthorizeManager.SuperAdmin)
            {
                return(NotFound());
            }

            CSVManager.ImportProduct(_context);

            return(RedirectToRoute(new { controller = "Product", action = "Index" }));
        }