I am getting this error when I am compiling my code and I am not sure why. The error is
CS1502: The best overloaded method match for 'CatalogAccess.EvalRegion(int)' has some invalid arguments
This is the line of code causing the error
String title = CatalogAccess.EvalRegion(regionID);
This is the method being called
public static String EvalRegion(int regionID)
{
DbCommand comm = GenericDataAccess.CreateCommand();
comm.CommandText = "EvaluateRegion";
DbParameter param = comm.CreateParameter();
param.ParameterName = "@REGIONID";
param.Value = regionID;
param.DbType = DbType.Int32;
comm.Parameters.Add(param);
DataTable dt = GenericDataAccess.ExecuteSelectCommand(comm);
string name = dt.Rows[0][0].ToString();
return name;
}
Any ideas on why I am getting there error. Am i missing something here?
CS1502: The best overloaded method match for 'CatalogAccess.EvalRegion(int)' has some invalid arguments
This is the line of code causing the error
String title = CatalogAccess.EvalRegion(regionID);
This is the method being called
public static String EvalRegion(int regionID)
{
DbCommand comm = GenericDataAccess.CreateCommand();
comm.CommandText = "EvaluateRegion";
DbParameter param = comm.CreateParameter();
param.ParameterName = "@REGIONID";
param.Value = regionID;
param.DbType = DbType.Int32;
comm.Parameters.Add(param);
DataTable dt = GenericDataAccess.ExecuteSelectCommand(comm);
string name = dt.Rows[0][0].ToString();
return name;
}
Any ideas on why I am getting there error. Am i missing something here?