c# – Passing data between controllers .net core 3.1


I want to pass data to another form so I thought of using tempdata. My route should be https://localhost:44383/Electrician but instead I am getting https://localhost:44383/Home/Electrician

public void Electrician(ElectricianModel model) {
        TempData("AssetId") = model.AssetId;
        TempData("Id") = model.Id;
        TempData("Type") = 1;
        RedirectToAction("Index", "Electrician",TempData);          
}

I am using the following map routes and believe it is something to do with this?.

app.UseEndpoints(endpoints => {
  endpoints.MapControllerRoute(
   name: "default",
     pattern: "{controller=Home}/{action=Index}/{id?}");
  });

I tried the following data noation but still had the /home/

(Route("GotoElectrician"))
 public void Electrician(ElectricianModel model) {
        TempData("AssetId") = model.AssetId;
        TempData("ElectricianId") = model.ElectricianId;
        TempData("CircutType") = 1;
        RedirectToAction("Index", "Electrician",TempData);            

 }