コード例 #1
0
        public async Task <RelationsUpdateStackViewModel> CreateUpdateRelationsStackViewModel(string personId, string selectedId)
        {
            var vm = new RelationsUpdateStackViewModel();

            vm.PersonId   = personId;
            vm.PersonList = await _mgrFcc.GetPersonsThatHaveRelativesWithPossibleRelations();

            vm.PersonsWithPossibleRelations = await _mgrFcc.GetPersonsKvpWithPossibleRelations(personId);

            vm.InitialRelations = await CreateRelationsUpdateStackPartial(personId, vm.PersonsWithPossibleRelations.FirstOrDefault().Key);

            return(vm);
        }
コード例 #2
0
 public async Task <IEnumerable <KeyValuePair <string, string> > > GetPersonsWithPossibleRelations(string personId)
 {
     return(await _mgrFcc.GetPersonsKvpWithPossibleRelations(personId));
 }