question

Snet-2583 avatar image
0 Votes"
Snet-2583 asked AgaveJoe edited

ViewModels in eShopOnWeb

Hi
I try to use eShopOnWeb application sample in my application and I have a question.
As I understand eShopOnWeb repositories return none IQueryable results. But if I use View Models, should my repository return IQueryable, then my service project this query to necessary view model, and send received data or result to presentation layer?

dotnet-aspnet-core-mvc
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ViewModels are typically defined in an MVC or Razor Pages application. You might have a mapping layer or service that handles the response from the business/data layer.

1 Vote 1 ·

0 Answers