public BsUsers GetObjects() { Database.DaUsers ass = new Database.DaUsers(); DataTable dt = ass.GetUsers( _id, _login, _name ); return(addObjectsList(dt)); }
public BsUser GetObject() { if (_id <= 0) { return(this); } Database.DaUsers ass = new Database.DaUsers(); DataTable dt = ass.GetUsers( _id, _login, _name ); if (dt.Rows.Count > 0) { setObject(this, dt.Rows[0]); } else { _id = 0; } return(this); }