[Invoke]
public List<string> GetConCurrentContractId(string identity, string empId, string payMonth)
{
List<string> _rtn = new List<string>();
IQueryable<mContract> query = this.ObjectContext.mContract;
IQueryable<mContract> query2 = this.ObjectContext.mContract.Where(
q => q.wEmpId == empId && q.wEmpId == "NOTVALID");
if (query.Count()>0)
{
_rtn.ToList<string>();
}
return _rtn;
}
query has record return, and query.Count() work, and query2.count() return exception ...
What is optional way to know any record return?