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?
↧