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

            CSVManager.ImportComment(_context);

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