Lots of changes to get code ready to add library.

This commit is contained in:
Joseph Milazzo 2020-12-17 11:27:19 -06:00
parent 67b97b3be2
commit d5eed4e85d
20 changed files with 570 additions and 3 deletions

View file

@ -1,4 +1,5 @@
using API.DTOs;
using System.Linq;
using API.DTOs;
using API.Entities;
using AutoMapper;
@ -9,6 +10,10 @@ namespace API.Helpers
public AutoMapperProfiles()
{
CreateMap<AppUser, MemberDto>();
CreateMap<Library, LibraryDto>()
.ForMember(dest => dest.Folders,
opt =>
opt.MapFrom(src => src.Folders.Select(x => x.Path).ToList()));
}
}
}