SHARE
TWEET

Untitled

a guest Jun 15th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top