public static string GetUser(string _userName, string _userPassword) { try { Models.User login = new Models.User(_userName, _userPassword); return(login.CheckUser()); } catch (Exception ex) { XtraMessageBox.Show("Error: " + ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Error); return(""); } }