Beispiel #1
0
        public async Task MainPersonPhoto(string personId, string fileId)
        {
            var person = await _mgrFcc.GetPerson(personId);

            person.FileContentId = fileId;
            await _mgrFcc.UpdatePerson(person);
        }
Beispiel #2
0
        private async Task SavePerson(PersonViewModel vm)
        {
            try
            {
                //save person as new
                if (!await _mgrFcc.ExistPerson(vm.Model.Id))
                {
                    await _mgrFcc.SetPerson(vm.Model);

                    return;
                }

                //update already existing person
                await _mgrFcc.UpdatePerson(vm.Model);
            }
            catch (Exception)
            {
                //TODO logging
            }
        }