public bool checkid(string empcode) { bool flag = false; var empl = from emp in taxEntity.EXDBs where emp.Emp_Id == empCode select emp; if (exdb.Emp_Id == empcode) flag = true; return flag; }
public bool checkid(string empcode) { return taxEntity.EXDBs.Any(emp => emp.Emp_Id == empcode); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)