We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20374a7 commit e78a89cCopy full SHA for e78a89c
1.zenuml
@@ -0,0 +1,15 @@
1
+@EC2 BookLibService
2
+BookLibService.Borrow(id) {
3
+ User = Session.GetUser()
4
+ if(User.isActive) {
5
+ try {
6
+ BookRepository.Update(id, onLoan, User)
7
+ receipt = new Receipt(id, dueDate)
8
+ } catch (BookNotFoundException) {
9
+ ErrorService.onException(BookNotFoundException)
10
+ } finally {
11
+ Connection.close()
12
+ }
13
14
+ return receipt
15
+}
0 commit comments