public async Task OnGetAsync() { string identityId = _signInManager.UserManager.GetUserId(User); var userInfo = await _userInformation.GetUserProfileInformationAsync(identityId); var ocp = await _userInformation.GetUserOccupationAsync(identityId); FillOccupationDropdown(ocp.Id); var aR = AgeRangeCalculator.GetAgeRange(userInfo.DateOfBirth.Value); AgeRange = AgeRangeCalculator.GetAgeRangeCaption(aR); }