示例#1
0
        public IReadOnlyList <UserDetailDto> GetUsersCityAndName(string city, string name)
        {
            var userxCityAndName = new UserDetailxCitySpecifications(city).And(new UserDetailxNombreSpecifications(name));

            return(MapperConfigurationCentral <UserDetails, UserDetailDto> .MapList(repository.GetAll(userxCityAndName), SpecificationMapper.SpecificationMapper.UserDetailToDto));
        }
示例#2
0
        public IReadOnlyList <UserDetailDto> GetUsersCity(string city)
        {
            var userxCity = new UserDetailxCitySpecifications(city);

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