Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1.  
  2.         // GET: api/Location
  3.         [HttpGet]
  4.         public async Task<List<Location>> GetAll()
  5.         {
  6.  
  7.             var response = await LocDA.GetAllLocations();
  8.  
  9.             return response.ToList();
  10.         }
  11.  
  12.         // GET: api/Location/Randomize
  13.         [HttpGet]
  14.         [Route("Randomize")]
  15.         public async Task<Location> GetRandom()
  16.         {
  17.            
  18.             var response = await LocDA.Randomize();
  19.  
  20.             return response;
  21.         }
  22.  
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement