public IActionResult Details(string propertyCode, int personId) { var propertyDetail = _propertyFacadeApiClient.GetPropertyDetails(propertyCode).Result; var propertyDetailView = _propertyFacadeApiClient.GetPropertyDetailView(propertyCode).Result; propertyDetail.AssetId = propertyDetailView?.AssetId ?? 0; propertyDetail.Id = propertyDetailView?.Id ?? 0; propertyDetail.PersonId = personId; propertyDetail.Person = _personApiClient.GetPerson(personId).Result; return(View(propertyDetail)); }
public IActionResult ComposeEmail(int personId = 0) { var model = PopulateEmailLookup(new EmailDto { PersonId = personId }); if (personId > 0) { var person = _personApiClient.GetPerson(personId).Result; model.Person = person; } var emailCategories = model.EmailCategories.ToList().ConvertAll(x => (BaseLookupDto)x); model.EmailCategorySelectListItems = SelectedListHelper.GetSelectListForItems(emailCategories, ""); var emailLabels = model.EmailLabelTypes.ToList().ConvertAll(x => (BaseLookupDto)x); model.EmailLabelTypeSelectListItems = SelectedListHelper.GetSelectListForItems(emailLabels, "", false); return(View(model)); }
public async Task <PersonDto> GetPerson(string globalIdentityKey) { return(await _personApiClient.GetPerson(globalIdentityKey)); }