private bool CheckLike(int Wall_ID, int AccountID1) { var check = false; var _clsCheck = new BllWall(); var dtCheck = _clsCheck.GetCheckLike(Wall_ID, AccountID1); if (dtCheck != null && dtCheck.Rows.Count > 0) { foreach (DataRow dr in dtCheck.Rows) { if (Wall_ID == int.Parse(dr["Wall_ID"].ToString()) && AccountID1 == int.Parse(dr["AccountID1"].ToString())) { check = true; } } } return(check); }