Getting C1 CMS Data

Get C1 CMS data in Razor functions

You can get data from C1 CMS data  types by using the Data property:

<ul>     
    @foreach  (var myEvent in Data.Get<Contoso.Event>())
    {
            <li>@myEvent.EventDate: @myEvent.Title</li>    
    }
</ul>  

(For sample code,  please also see "List to Details".)