public IReadOnlyList <UserDetailDto> GetUsersName(string name) { var userxName = new UserDetailxNombreSpecifications(name); return(MapperConfigurationCentral <UserDetails, UserDetailDto> .MapList(repository.GetAll(userxName), SpecificationMapper.SpecificationMapper.UserDetailToDto)); }
public IReadOnlyList <UserDetailDto> GetUsersEmail(string email) { var userxEmail = new UserDetailxEmailSpecifications(email); return(MapperConfigurationCentral <UserDetails, UserDetailDto> .MapList(repository.GetAll(userxEmail), SpecificationMapper.SpecificationMapper.UserDetailToDto)); }
public IReadOnlyList <UserDetailDto> GetUsersAll() { var all = new UserDetailAllSpecifications(); return(MapperConfigurationCentral <UserDetails, UserDetailDto> .MapList(repository.GetAll(all), SpecificationMapper.SpecificationMapper.UserDetailToDto)); }