Created
July 3, 2022 11:17
-
-
Save MahdiKarimipour/2ad51f08db272f00e0e35082ea68fe3a to your computer and use it in GitHub Desktop.
How to call Pellerex Repository to Fetch Full-Text Queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<IEnumerable<AddressViewModel>> GetAddresses(string query) | |
{ | |
var foundAddresses = await LocationApiRepository.AddressRepository.GetFullText(t => t.FullAddress, query) | |
.Select(c => new AddressViewModel() | |
{ | |
Id = c.Id, | |
FullAddress = c.FullAddress, | |
}) | |
.Take(30) | |
.ToListAsync(); | |
return foundAddresses; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment