private void setLoanReturned(int id) { try { keyRegister.setLoanReturned(id); } catch (KeyRegister.LoanIdNotFoundException e) { Console.WriteLine(e.Message); } }
protected void returnSelectedLoanClicked(object o, EventArgs e) { try { keyRegister.setLoanReturned(loanView.SelectedDbId); } catch (KeyRegister.LoanIdNotFoundException) { return; } doUpdates(); }