I am trying to update some field in my data table. While using the given below code shows one error. Help me to find a proper solution. Thank you.
Code:
ShadingAnalysisDataSetTableAdapters.tbl_AutoAssignJrEngineersTeamTableAdapter tm;
tm = new ShadingAnalysisDataSetTableAdapters.tbl_AutoAssignJrEngineersTeamTableAdapter();
DataTable dt = new DataTable();
dt = tm.UpdateTeam(AssignedTeam,userName,DateTime.Now,ID); // error popup here
SQL:
UPDATE tbl_AutoAssignJrEngineersTeam
SET Assigned_Team = @Assigned_Team,
Updated_By = @Updated_By,
Updated_Date = @Updated_Date
WHERE (Id = @Id)
DataBase:

intand try to cast it explicitly or implicitly to aDataTable. My guess would be thetm.UpdateTeammethod returns an int.