protected string GetAimeStatusText() { var communityId = ActivityContext.Current.Community.Id; if (communityId == null) { return(null); } var items = _memberAffiliationsQuery.GetItems(_member.Id, communityId.Value) as AimeAffiliationItems; if (items == null) { return(null); } if (items.Status == null) { return(null); } return(items.Status.GetDisplayText()); }
private PersonalDetailsModel GetPersonalDetailsModel(Guid?memberId, PersonalDetailsMemberModel member, PersonalDetailsPasswordsModel passwords) { var model = GetModel <PersonalDetailsModel>(memberId); model.Member = member; model.Passwords = passwords; var communityId = ActivityContext.Community.Id; model.AffiliationItems = communityId != null && memberId != null ? _memberAffiliationsQuery.GetItems(memberId.Value, communityId.Value) : null; model.Reference = new PersonalDetailsReferenceModel { Countries = _locationQuery.GetCountries(), DefaultCountry = ActivityContext.Location.Country, SalaryRates = SalaryRates, }; return(model); }