protected override void Validation() { if (_IEmployee.CountEmployeeByNationalityID(_NationalityID) > 0) { HrmisUtility.ThrowException(HrmisUtility._Nationality_HasBeenUsed); } }
protected override void Validation() { if (_IParameter.CountNationalityByNameDiffPKID(_Nationality.ParameterID, _Nationality.Name) > 0) { HrmisUtility.ThrowException(HrmisUtility._Nationality_Name_Repeat); } if (_IEmployee.CountEmployeeByNationalityID(_Nationality.ParameterID) > 0) { HrmisUtility.ThrowException(HrmisUtility._Nationality_HasBeenUsed); } }