//relocate this on a helper class or something better private bool ValidateUser(string username, string password) { return(SAPCredential.ValidateUser(username, password)); }
public static bool ValidateUser(string username, string password) { Config.SAPUserName = username; Config.SAPPassword = password; return(SAPCredential.ValidateUser(username, password)); }