• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How many business operations we need to expose to the client?

 
Marcelo Camargo
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am exposing only the book reservation and cancel previous reservation to the client. but my assignment only talks about booking.

I am thinking about expose only the book operation (removing the cancelation).

Does someone have other idea?
 
Gabriel Vargas
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcelo,

I think if you think this is good you can do that, i let book method acts as unbook if record is booked and parameter is an empty string (I see this weekend if i change to two methods or i not modify my implementation). I think you can expose also find method and if you have a findAll method (as i have).

I hope it helps you.
 
Marcelo Camargo
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already have findAll and findByCriteria. They are 4 methods.
2 to update data.

Marcelo.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic