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); }
public async Task <IEnumerable <KeyValuePair <string, string> > > GetPersonsWithRelationsWithPossibleRelations() { return(await _mgrFcc.GetPersonsThatHaveRelativesWithPossibleRelations()); }