Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce WebService #91

Open
nikolagsiderov opened this issue Mar 9, 2021 · 0 comments
Open

Introduce WebService #91

nikolagsiderov opened this issue Mar 9, 2021 · 0 comments

Comments

@nikolagsiderov
Copy link
Owner

Game plan:

  1. Implement BaseWebService class
  2. BaseWebService should somehow get its information from BaseFacade
  3. BaseWebService's functions:
  • IEnumerable GetCollection()/(context)
  • IEnumerable GetEntity(id)/(context)
  • void/T Save(T entity)
  • void/T Delete(T entity)

After all that implement CarWebService and ServiceBookLogWebService and make them inherit BaseWebService.

NOTE: The difference between the WebService and the Facade is that the WebService should work only with ViewModels and the Facade should work only with DbModels. The conversion from ViewModel to DbModel should be done in the WebService

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Stories
Development

No branches or pull requests

1 participant