public override async Task <IEnumerable <DTO.BodyMeasurement> > AllAsync()
 {
     return((
                await RepoDbSet
                .ToListAsync()
                ).Select(domainEntity => Mapper.MapDomainToDAL(domainEntity)));
 }
Exemplo n.º 2
0
        public new async Task <List <DALAppUserDTO> > AllAsync()
        {
            var users = await RepoDbSet
                        .ToListAsync();

            return(users
                   .Select(AppUserMapper.FromDomain)
                   .ToList());
        }