protected bool checkExistUsername(string username) { dpBUS = new DepartmentBUS(); DataTable tblUser = dpBUS.GetByUsername(username); if (tblUser.Rows.Count > 0) { return true; } return false; }