public CzkemUserInfo GetUserInfo(int userid) { var fullname = string.Empty; var password = string.Empty; var privilege = 0; var enable = false; var result = _czkem.GetUserInfo(_czkem.MachineNumber, userid, ref fullname, ref password, ref privilege, ref enable); if (result) { return(new CzkemUserInfo { UserId = userid, Fullname = fullname, Password = password, Privilege = privilege, Enabled = enable }); } return(null); }
public bool GetUserInfo(int dwMachineNumber, int dwEnrollNumber, ref string Name, ref string Password, ref int Privilege, ref bool Enabled) { return(objCZKEM.GetUserInfo(dwMachineNumber, dwEnrollNumber, ref Name, ref Password, ref Privilege, ref Enabled)); }