예제 #1
0
        public List <MemberDto> GetMembersAlphabeticalByLastName() => _uow.Uow(uow =>
        {
            var entities = uow.MemberRepository.FindBy(m => true)
                           .OrderBy(m => m.LastName)
                           .ToList();
            var mapper = AutomapperBootstrapper.MapMember();
            var dtos   = mapper.Map <List <Member>, List <MemberDto> >(entities);

            return(dtos);
        });
 public VesperLogBookService()
 {
     _mapper = AutomapperBootstrapper.MapVesperLogBook();
 }