Guest User

Untitled

a guest
Jan 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public async Task<IEnumerable<Country>> GetCountries()
  2. {
  3. var x= from n in _ConnectToDb.Country
  4. orderby n.CountryId
  5. select n;
  6. return x.ToList();
  7. }
  8.  
  9. public async Task<ActionResult<Country>> GetCountryRes()
  10. {
  11. var x =await ObjRepo.GetCountries();
  12. return x;
  13. }
Add Comment
Please, Sign In to add comment