Ejemplo n.º 1
0
        protected override void WriteOperationCustomResult(PortalContext portalContext, object result, int?allCount)
        {
            var dictionaryList = result as List <Dictionary <string, object> >;

            if (dictionaryList != null)
            {
                Write(ODataMultipleContent.Create(dictionaryList, allCount.HasValue ? allCount.Value : dictionaryList.Count), portalContext);
                return;
            }
            Write(result, portalContext);
        }
Ejemplo n.º 2
0
 protected override void WriteMultipleContent(PortalContext portalContext, List <Dictionary <string, object> > contents, int count)
 {
     Write(ODataMultipleContent.Create(contents, count), portalContext);
 }