//----- Check User -----// private bool CheckUser() { bool check = false; Dictionary <string, string> properties = new Dictionary <string, string>(); properties.Add("code", tb_Usercode.Text); properties.Add("password", tb_Password.Text); try { UserVM userVM = qLUserBLL.CheckUser(properties); if (userVM != null) { check = true; } } catch (Exception) {} return(check); }