public static Users GetUserByUserID(string username) { var dal = new UserDAL(); DataRow row = dal.GetUserByUserID(username); var instance = new Users(); instance.Bind(row); return(instance); }
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); }
public static Users GetUserByUserID(string username) { var dal = new UserDAL(); DataRow row = dal.GetUserByUserID(username); var instance = new Users(); instance.Bind(row); return instance; }
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; }