Esempio n. 1
0
        public IActionResult ImportProduct2()
        {
            if (User.Identity.Name != AuthorizeManager.SuperAdmin)
            {
                return(NotFound());
            }

            CSVManager.ImportProduct2(_context);

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