public static void UpdateEmployee(Employee ins, string admin)
 {
     var dal = new EmployeeDAL();
     dal.UpdateEmployee(ins, admin);
 }
        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 int IsLogged(string empid, string log)
 {
     var dal = new EmployeeDAL();
     return dal.IsLogged(empid, log);
 }
        public static void InsertEmployee(Employee ins, string admin)
        {
            var dal = new EmployeeDAL();

            dal.InsertEmployee(ins, admin);
        }
        public static List<Employee> GetLoggedEmployee()
        {
            var dal = new EmployeeDAL();
            var collection = new List<Employee>();

            foreach (DataRow row in dal.GetLoggedEmployee().Rows)
            {
                var ins = new Employee();
                ins.Bind2(row);

                collection.Add(ins);
            }

            return collection;
        }
        public static Employee GetEmployeeByUsername(string username)
        {
            var dal = new EmployeeDAL();

            DataRow row = dal.GetEmployeeByUsername(username);

            var instance = new Employee();
            instance.Bind(row);

            return instance;
        }