Skip to main content

Return Sitecore item as list of Model

I am trying to return sitecore items list from my controller as list of model type

eg. public List<PageContent> Results { get; set; }

I need to get the list of items in Results.

Using glassmapper this is easily done

this.Results.Add(siteContext.GetItem<PageContent>(result.Document.GetItem().ID.Guid));

but I need to get it without glassmapper. Any way of doing this?