Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Route("api/property/getProperties/{userId}/{userTypeId}")]
- [HttpGet]
- public async Task<List<Property>> GetProperties(long userId, long userTypeId) => await Property.GetProperties(userId, userTypeId).ConfigureAwait(false);
- async getUserMailingAddressAndProperties() {
- for (let userType of this.userUserTypes) {
- for (let availableUserType of this.availableUserTypes) {
- await this.userDetailsProvider.getPropertiesPromise(typeID, this.userID).then(
- (response: any) => {
- //let temp = [];
- availableUserType.propertyCount = response.length;
- availableUserType.properties = response;
- userProperties = response;
- }
- ).catch(error => {
- console.log(error);
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement