Ejemplo n.º 1
0
        public static Boolean CheckCredentials(LoginVM userVm)
        {
            UserMapper userMapper = new UserMapper();
            List<Samsung_User> recivedList = userMapper.GetAllSamsungUsers();

            foreach (var item in recivedList)
            {
                if ((item.emailAddress.Equals(userVm.EmailAddress)) && (item.password.Equals(userVm.Password)))
                {
                    return true;
                }
            }
            return false;
        }
Ejemplo n.º 2
0
 public static void GetAllSamsungUsers()
 {
     UserMapper userMapper = new UserMapper();
     Samsung_User userSamsung = new Samsung_User();
     userMapper.GetAllSamsungUsers();
 }