add Sofwater to summary endpoint

ref #268
This commit is contained in:
Collin M. Barrett 2018-09-03 14:49:54 -05:00
parent d3128919f0
commit ec4e72b83c
2 changed files with 4 additions and 0 deletions

View file

@ -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 =>

View file

@ -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; }
}