예제 #1
0
        public static Users GetUserByUserID(string username)
        {
            var dal = new UserDAL();

            DataRow row = dal.GetUserByUserID(username);

            var instance = new Users();

            instance.Bind(row);

            return(instance);
        }
예제 #2
0
        public static List <Users> GetAllUserData()
        {
            var dal        = new UserDAL();
            var collection = new List <Users>();

            foreach (DataRow row in dal.GetAllUserData().Rows)
            {
                var instance = new Users();
                instance.Bind(row);
                collection.Add(instance);
            }

            return(collection);
        }
예제 #3
0
        public static Users GetUserByUserID(string username)
        {
            var dal = new UserDAL();

            DataRow row = dal.GetUserByUserID(username);

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

            return instance;
        }
예제 #4
0
        public static List<Users> GetAllUserData()
        {
            var dal = new UserDAL();
            var collection = new List<Users>();

            foreach(DataRow row in dal.GetAllUserData().Rows){
                var instance = new Users();
                instance.Bind(row);
                collection.Add(instance);
            }

            return collection;
        }