Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want number of records returned from Controller.ViewAction call.

Here, Controller is controller name
ViewAction is method of controller which returns ActionResult

So, how can I find number of records returned from view result?

Code block:
ViewResult vr = Controller.ViewAction(null, null, null, null, null, null) as ViewResult;
Posted
Comments
Bala Selvanayagam 30-Dec-13 5:56am    
I am not sure about your question, are you saying that you would like to get the count of a linq query result ? please clarify with detail

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900