File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
StrDss.Model/RentalReportDtos Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ public EntityToModelProfile()
47
47
CreateMap < DssBusinessLicenceStatusType , LicenseStatus > ( ) ;
48
48
49
49
CreateMap < DssBusinessLicence , BizLicenseDto > ( )
50
+ . ForMember ( o => o . LicenseStatus , opt => opt . MapFrom ( i => i . LicenceStatusTypeNavigation ) )
50
51
. ForMember ( o => o . UpdDtm , opt => opt . MapFrom ( i => DateUtils . ConvertUtcToPacificTime ( i . UpdDtm ) ) ) ;
51
52
}
52
53
}
Original file line number Diff line number Diff line change @@ -218,7 +218,10 @@ var extraSort
218
218
219
219
listing . AddressChangeHistory = await GetAddressChangeHistoryAsync ( rentalListingId ) ;
220
220
221
- listing . BizLicenseDto = _mapper . Map < BizLicenseDto > ( await _dbContext . DssBusinessLicences . AsNoTracking ( ) . FirstOrDefaultAsync ( x => x . BusinessLicenceId == listing . BusinessLicenceId ) ) ;
221
+ listing . BizLicenseInfo = _mapper . Map < BizLicenseDto > (
222
+ await _dbContext . DssBusinessLicences . AsNoTracking ( ) . Include ( x => x . LicenceStatusTypeNavigation )
223
+ . FirstOrDefaultAsync ( x => x . BusinessLicenceId == listing . BusinessLicenceId )
224
+ ) ;
222
225
223
226
return listing ;
224
227
}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public class RentalListingViewDto
83
83
public DateTime ? LastActionDtm { get ; set ; }
84
84
public bool HasAtLeastOneValidHostEmail { get ; set ; }
85
85
public List < HostInfo > HostsInfo { get ; set ; } = new List < HostInfo > ( ) ;
86
- public BizLicenseDto ? BizLicenseDto { get ; set ; }
86
+ public BizLicenseDto ? BizLicenseInfo { get ; set ; }
87
87
public virtual ICollection < RentalListingContactDto > Hosts { get ; set ; } = new List < RentalListingContactDto > ( ) ;
88
88
public virtual ICollection < ListingHistoryDto > ListingHistory { get ; set ; } = new List < ListingHistoryDto > ( ) ;
89
89
public virtual ICollection < ActionHistoryDto > ActionHistory { get ; set ; } = new List < ActionHistoryDto > ( ) ;
You can’t perform that action at this time.
0 commit comments