public bool GetStatus(string RoleId) { bool status = false; DataTable dtRole = objRole.GetRoleMaster(); dtRole = new DataView(dtRole, "Role_Id='" + RoleId + "'", "", DataViewRowState.CurrentRows).ToTable(); if (dtRole.Rows.Count > 0) { string str = dtRole.Rows[0]["Role_Name"].ToString().Trim().ToLower(); if (str == "super admin") { status = true; } } return(status); }