예제 #1
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
            }
        }