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); }
public Siren Handle(object model, Uri uri) { var data = model as SiteDetail; var sirenDoc = writer.Write(data, uri); return(sirenDoc); }
public Siren Handle(object model, Uri uri) { var modeldata = model as IEnumerable <OrderItemViewModel>; var sirenDocWithItems = writer.Write(modeldata, uri); return(sirenDocWithItems); }