Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

.net core mvc question

$
0
0
very basic question, Just trying to fully understand what I am doing. I'm my viewmodel I have these 2 linesvar documents = await departmentDocumentsRepository.GetDocumentsAsync(nodeAliasPath); var documentsModel = documents.Select(departmentDocumment =@ DepartmentDocumentsViewModel.GetViewModel(departmentDocumment, pageUrlRetriever, attachmentUrlRetriever)); The first spits out an IEnumberable of the kentico document type. The second is an IEnumberable of the view model. What does converting it to the view model do for the data?

Viewing all articles
Browse latest Browse all 8901

Trending Articles