Пример #1
0
        public async Task <IActionResult> OnGet()
        {
            Citizen = await _citizenData.GetCitizenById(Id);

            if (Citizen != null)
            {
                var tribe = await _tribeData.GetTribe();

                TribeName = tribe.Where(x => x.Id == Citizen.TribeId).FirstOrDefault()?.Name;
            }

            return(Page());
        }
Пример #2
0
 public async Task OnGet()
 {
     Citizen = await _citizenData.GetCitizenById(Id);
 }