Ejemplo n.º 1
0
        public IReadOnlyList <UserDetailDto> GetUsersName(string name)
        {
            var userxName = new UserDetailxNombreSpecifications(name);

            return(MapperConfigurationCentral <UserDetails, UserDetailDto> .MapList(repository.GetAll(userxName), SpecificationMapper.SpecificationMapper.UserDetailToDto));
        }
Ejemplo n.º 2
0
        public IReadOnlyList <UserDetailDto> GetUsersEmail(string email)
        {
            var userxEmail = new UserDetailxEmailSpecifications(email);

            return(MapperConfigurationCentral <UserDetails, UserDetailDto> .MapList(repository.GetAll(userxEmail), SpecificationMapper.SpecificationMapper.UserDetailToDto));
        }
Ejemplo n.º 3
0
        public IReadOnlyList <UserDetailDto> GetUsersAll()
        {
            var all = new UserDetailAllSpecifications();

            return(MapperConfigurationCentral <UserDetails, UserDetailDto> .MapList(repository.GetAll(all), SpecificationMapper.SpecificationMapper.UserDetailToDto));
        }