public string CheckDataActionHire(string lstProfileID) { string returnValue = null; string status = string.Empty; var profileID = Guid.Empty; var actionService = new ActionService(UserLogin); var profileServices = new Hre_ProfileServices(); var lstprofile = actionService.GetData<Hre_ProfileEntity>(Common.DotNetToOracle(lstProfileID), ConstantSql.hrm_hr_sp_get_ProfileByIds, ref status).ToList(); var strvalidate = profileServices.StrValidateActionHire(); if (!string.IsNullOrEmpty(strvalidate)) { string[] valueField = strvalidate.Split(','); foreach (var profile in lstprofile) { foreach (var value in valueField) { if (profile.GetPropertyValue(value) == null) { returnValue += profile.CodeCandidate + ","; } } } } else { foreach (var profile in lstprofile) { if (profile.ProfileName == null || profile.DateHire == null || profile.IDNo == null || profile.Gender == null || profile.YearOfBirth == null || profile.PAddress == null || profile.WorkPlaceID == null || profile.Cellphone == null || profile.OrgStructureID == null || profile.ContractTypeID == null || profile.SalaryClassID == null) { returnValue += profile.CodeCandidate + ","; } } } if (returnValue != null) { returnValue = returnValue.Substring(0, returnValue.Length - 1); } return returnValue; }