예제 #1
0
        public async Task <IActionResult> AddGroups(IFormFileCollection ExcelFiles)
        {
            var jwt = Request.Cookies["Jwt"];

            _uniAPI.SetJWT(jwt);
            if (jwt == null || String.IsNullOrWhiteSpace(jwt))
            {
                await HttpContext.SignOutAsync("Cookies");

                return(LocalRedirectPermanent("~/Home"));
            }

            await ExcelService.AddGroups(ExcelFiles, _rootPath, _uniAPI);

            return(RedirectToAction("Index"));
        }