I know this might defeat the purpose of using a viewModel but in some cases
i need to a DB check prior to calling the viewmodel ( access check for example) ..in that DB check I can already get some info i need for my view ( but not all) in such case if i can pass a variable to the viewmodel, it would save me another DB call.
is there a way to pass a variable to the viewmodel? if not how do I minimize my DB calls , should i remove the viewmodel altogether?
thanks