public async Task <IActionResult> AddTeachers(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.AddTeachers(ExcelFiles, _rootPath, _uniAPI); return(RedirectToAction("Index")); }