Example #1
0
        public User GetUserInfo(Int64 ProfileId)
        {
            string _MacAddress = new dcClientWorkStation().GetRegisteredMacAddress();

            this.SelectInfoParameters.Add("p_ProfileId", ProfileId);
            this.SelectInfoParameters.Add("p_WSMacAddress", _MacAddress);
            User _info = this.GetInfo();

            return(_info);
        }
Example #2
0
 public User GetUserLogon(string UserName)
 {
     try
     {
         string _MacAddress    = new dcClientWorkStation().GetRegisteredMacAddress();
         SQLServer.Procedure p = new SQLServer.Procedure("dbo.SelectLogon");
         p.Parameters.Add("p_UserName", UserName);
         p.Parameters.Add("p_WSMacAddress", _MacAddress);
         return(new dcUser().GetInfo(p));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }