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; }