public async Task MainPersonPhoto(string personId, string fileId) { var person = await _mgrFcc.GetPerson(personId); person.FileContentId = fileId; await _mgrFcc.UpdatePerson(person); }
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 } }