示例#1
0
 private JobAdModel CreateNewJobAd(IEmployer employer)
 {
     return(new JobAdModel
     {
         IndustryIds = new List <Guid>(),
         ContactDetails = employer == null
             ? new ContactDetails()
             : new ContactDetails
         {
             FirstName = employer.FirstName,
             LastName = employer.LastName,
             EmailAddress = employer.EmailAddress.Address,
             PhoneNumber = employer.PhoneNumber == null ? null : employer.PhoneNumber.Number,
         },
         ExpiryTime = GetExpiryTime(null, JobAdFeatures.None),
         ResidencyRequired = true,
         Location = _locationQuery.ResolveLocation(ActivityContext.Location.Country, null),
         Logo = new LogoModel
         {
             FileReferenceId = employer == null ? null : _jobAdsCommand.GetLastUsedLogoId(employer.Id),
         },
     });
 }