Пример #1
0
        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);
        }
Пример #2
0
 private void ChangeStaffIdentifier(StaffIdentifierDto staffIdentifierDto, Staff staff, StaffIdentifier staffIdentifier)
 {
     RemoveStaffIdentifier(staffIdentifierDto, staff, staffIdentifier);
     AddStaffIdentifier(staffIdentifierDto, staff);
 }
Пример #3
0
 private static void RemoveStaffIdentifier(StaffIdentifierDto staffIdentifierDto, Staff staff, StaffIdentifier staffIdentifier)
 {
     staff.RemoveIdentifier(staffIdentifier);
 }