public static Employee SelectEmployeeByID(string id) { var dal = new EmployeeDAL(); DataRow row = dal.SelectEmployeeByID(id); var ins = new Employee(); ins.Bind(row); return(ins); }
public static Employee GetEmployeeByUsername(string username) { var dal = new EmployeeDAL(); DataRow row = dal.GetEmployeeByUsername(username); var instance = new Employee(); instance.Bind(row); return(instance); }
public static Employee SelectEmployeeByID(string id) { var dal = new EmployeeDAL(); DataRow row = dal.SelectEmployeeByID(id); var ins = new Employee(); ins.Bind(row); return ins; }
public static Employee GetEmployeeByUsername(string username) { var dal = new EmployeeDAL(); DataRow row = dal.GetEmployeeByUsername(username); var instance = new Employee(); instance.Bind(row); return instance; }