private void AddResponsibilitiesToEmployee(IEmployee employee, string[] responsibilities) { var responsibilitesToAdd = new List <ResponsibilityType>(); foreach (var responsibility in responsibilities) { bool isValid = Validate.IsValidResponsibilityTypeFromString(responsibility); if (isValid) { ResponsibilityType currentResponsibility; Enum.TryParse(responsibility, out currentResponsibility); responsibilitesToAdd.Add(currentResponsibility); } } employee.AddResponsibilities(responsibilitesToAdd); }