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; }
public static void GetAllSamsungUsers() { UserMapper userMapper = new UserMapper(); Samsung_User userSamsung = new Samsung_User(); userMapper.GetAllSamsungUsers(); }