Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. [Route("api/property/getProperties/{userId}/{userTypeId}")]
  2. [HttpGet]
  3. public async Task<List<Property>> GetProperties(long userId, long userTypeId) => await Property.GetProperties(userId, userTypeId).ConfigureAwait(false);
  4.  
  5. async getUserMailingAddressAndProperties() {
  6. for (let userType of this.userUserTypes) {
  7. for (let availableUserType of this.availableUserTypes) {
  8. await this.userDetailsProvider.getPropertiesPromise(typeID, this.userID).then(
  9. (response: any) => {
  10. //let temp = [];
  11. availableUserType.propertyCount = response.length;
  12. availableUserType.properties = response;
  13. userProperties = response;
  14. }
  15. ).catch(error => {
  16. console.log(error);
  17. });
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement