mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
d3128919f0
commit
ec4e72b83c
2 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ public class ListSummaryDtoMappingProfile : Profile
|
|||
public ListSummaryDtoMappingProfile() =>
|
||||
CreateMap<Data.Entities.FilterList, ListSummaryDto>()
|
||||
.ForMember(d => d.Languages, o => o.MapFrom(l => l.FilterListLanguages.Select(la => la.Language)))
|
||||
.ForMember(d => d.Software,
|
||||
o => o.MapFrom(l =>
|
||||
l.Syntax.SoftwareSyntaxes.Select(ss => ss.Software.Name)))
|
||||
.ForMember(d => d.Tags, o => o.MapFrom(l => l.FilterListTags.Select(m => m.Tag)))
|
||||
.ForMember(d => d.UpdatedDate,
|
||||
o => o.MapFrom(l =>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ public class ListSummaryDto
|
|||
public uint Id { get; set; }
|
||||
public IEnumerable<ListLanguagesDto> Languages { get; set; }
|
||||
public string Name { get; set; }
|
||||
public IEnumerable<string> Software { get; set; }
|
||||
public IEnumerable<ListTagDto> Tags { get; set; }
|
||||
public DateTime? UpdatedDate { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue