the error is pretty clear. EmployeeDB.DataSetChange() requires two parameters, and your code passes one,
c# Error CS 7036
Hi, I got this error for this code :
#region Database Communication.
public void DataMaintenance(Employee anEmp)
{
//perform a given database operation to the dataset in meory;
**employeeDB.DataSetChange(anEmp);//calling method to do the insert
employees.Add(anEmp);//
}
//***Commit the changes to the database
public bool FinalizeChanges(Employee employee)
{
//***call the EmployeeDB method that will commit the changes to the database
return employeeDB.UpdateDataSource(employee);
}
#endregion
Severity Code Description Project File Line Suppression State
Error CS7036 There is no argument given that corresponds to the required formal parameter 'operation' of 'EmployeeDB.DataSetChange(Employee, DB.DBOperation)' GoodFoodSystem C:\Users\patiance\OneDrive\Desktop\INF2011\startingFile-1\GoodFoodSystem\GoodFoodSystem\GoodFoodSystem\BusinessLayer\EmployeeController.cs 41 Active