Exemplo n.º 1
0
        internal List <PharmaBusinessObjects.Master.UserMaster> GetUsers(string searchText)
        {
            List <PharmaBusinessObjects.Master.UserMaster> users = new PharmaDAL.Master.UserDao(this.LoggedInUser).GetUsers(searchText);

            users.ForEach(p => p.Password = DecryptPassword(p.Password));
            return(users);
        }
Exemplo n.º 2
0
 internal PharmaBusinessObjects.Master.UserMaster GetUserByUserId(int userid)
 {
     PharmaBusinessObjects.Master.UserMaster user = new PharmaDAL.Master.UserDao(this.LoggedInUser).GetUserByUserId(userid);
     if (user != null)
     {
         user.Password = DecryptPassword(user.Password);
     }
     return(user);
 }