private async void Save(object obj) { var comm = new CommandSsh(); if (comm.Id == null) { await _repository.InsertAsync(comm); } else { await _repository.UpdateAsync(comm); } }
public AddCommandPage(CommandSsh cmd) { ViewModel.CommandSsh = cmd; InitializeComponent(); }
public Task GoToEditCommandPage(CommandSsh cmd) { return(PushAsync(Navigation, new AddCommandPage(cmd))); }