I have a code block in my unit test project as below
IEnumerable<Product> result = (IEnumerable<Product>)controller.List(2).Model;
it produce error
Error 1 'System.Web.Mvc.ActionResult' does not contain a definition for 'Model' and no extension method 'Model' accepting a first argument of type 'System.Web.Mvc.ActionResult' could be found ..
How can I solve this?