private void AddStaffIdentifier(StaffIdentifierDto staffIdentifierDto, Staff staff) { var staffIdentifierType = _mappingHelper.MapLookupField <StaffIdentifierType> (staffIdentifierDto.StaffIdentifierType); var staffIdentifier = new StaffIdentifier( staffIdentifierType, staffIdentifierDto.IdentifierNumber, new DateRange(staffIdentifierDto.StartDate, staffIdentifierDto.EndDate)); staff.AddIdentifier(staffIdentifier); }
private void ChangeStaffIdentifier(StaffIdentifierDto staffIdentifierDto, Staff staff, StaffIdentifier staffIdentifier) { RemoveStaffIdentifier(staffIdentifierDto, staff, staffIdentifier); AddStaffIdentifier(staffIdentifierDto, staff); }
private static void RemoveStaffIdentifier(StaffIdentifierDto staffIdentifierDto, Staff staff, StaffIdentifier staffIdentifier) { staff.RemoveIdentifier(staffIdentifier); }