public IActionResult ImportUser()
 {
     try
     {
         // 調用 CSVService 提供的函數來匯入用戶資料
         CSVService.ImportUser(_context);
         return(RedirectToRoute(new { controller = "User", action = "Index" }));
     }
     catch (Exception ex)
     {
         _logger.LogError(ex.ToString());
         ViewBag.Error = "匯入用戶時發生錯誤,請查看LOG!";
         return(View("~/Views/Shared/ErrorPage.cshtml"));
     }
 }