How can I return IEnumerable from a method. 

```
 public IEnumerable<dynamic> GetMenuItems()
        {

            dynamic menuItems = new[]
                                    {
                                         new { Title="Home" },
                                    new { Title = "Categories"} 
                                    };

            return menuItems; 

        }

```

The above code returns IEnumerable but when I use it in the View it does not recognize the Title property. 

```
@foreach(var item in @Model) 
{  
   <span>item.Title</span>
}  

```