public static List<EmployeeLog> GetAllLogtimeByUser(string empid) { var dal = new EmployeeLogDAL(); var collection = new List<EmployeeLog>(); foreach(DataRow row in dal.GetAllLogtimeByUser(empid).Rows){ var instance = new EmployeeLog(); instance.Bind(row); collection.Add(instance); } // return collection; }
public static void InsertLogOutTime(string empid, string empname) { var dal = new EmployeeLogDAL(); dal.InsertLogOutTime(empid, empname, "O"); }