public bool isValid() { bool RValue = true; if (toList.Where(x => x.DesignationName.ToLower() == DesignationName.ToLower() && x.Id != Id).Count() > 0) { RValue = false; } return(RValue); }