Ejemplo n.º 1
0
        private void AddStaffLicense(StaffLicenseDto dto, Staff staff)
        {
            var license      = _mappingHelper.MapLookupField <License> (dto.License);
            var staffLicense = new StaffLicense(license, new DateRange(dto.StartDate, dto.EndDate));

            staff.AddLicense(staffLicense);
        }
Ejemplo n.º 2
0
 private void RemoveStaffLicense(StaffLicenseDto dto, Staff staff, StaffLicense staffLicense)
 {
     staff.RemoveLicense(staffLicense);
 }
Ejemplo n.º 3
0
 private void ChangeStaffLicense(StaffLicenseDto dto, Staff staff, StaffLicense staffLicense)
 {
     RemoveStaffLicense(dto, staff, staffLicense);
     AddStaffLicense(dto, staff);
 }