Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async Task<IEnumerable<Country>> GetCountries()
- {
- var x= from n in _ConnectToDb.Country
- orderby n.CountryId
- select n;
- return x.ToList();
- }
- public async Task<ActionResult<Country>> GetCountryRes()
- {
- var x =await ObjRepo.GetCountries();
- return x;
- }
Add Comment
Please, Sign In to add comment