예제 #1
0
        public Siren Handle(object model, Uri uri)
        {
            var modeldata = model as IEnumerable <Order>;

            if (modeldata == null)
            {
                var oneFriend = (Order)model;
                var sirenDoc  = writer.Write(oneFriend, uri);
                return(sirenDoc);
            }

            var sirenDocWithItems = writer.Write(modeldata, uri);

            return(sirenDocWithItems);
        }
예제 #2
0
        public Siren Handle(object model, Uri uri)
        {
            var data     = model as SiteDetail;
            var sirenDoc = writer.Write(data, uri);

            return(sirenDoc);
        }
예제 #3
0
        public Siren Handle(object model, Uri uri)
        {
            var modeldata         = model as IEnumerable <OrderItemViewModel>;
            var sirenDocWithItems = writer.Write(modeldata, uri);

            return(sirenDocWithItems);
        }