private async Task HandleCommand(PersonViewModel vm) { switch (vm.Command) { case ActionCommand.Open: vm.State = VmState.Detail; break; case ActionCommand.New: vm.State = VmState.Detail; break; case ActionCommand.Save: await SavePerson(vm); vm.State = VmState.Detail; vm.Command = ActionCommand.Open; break; case ActionCommand.Delete: await _mgrFcc.DeletePerson(vm.Model.Id); break; case ActionCommand.Cancel: default: break; } }