static LongPrimaryKeyTypeController() { CachedData = new LongPrimaryKeyType[] { new LongPrimaryKeyType() { ID = 1 }, new LongPrimaryKeyType() { ID = 2 }, new LongPrimaryKeyType() { ID = 3 } }; }
public LongPrimaryKeyType Patch([FromODataUri]long key, LongPrimaryKeyType model) { model = CachedData.Single(d => d.ID == key); return model; }
static LongPrimaryKeyTypeController() { CachedData = new LongPrimaryKeyType[] { new LongPrimaryKeyType() { ID = 1 }, new LongPrimaryKeyType() { ID = 2 }, new LongPrimaryKeyType() { ID = 3 } }; }
public LongPrimaryKeyType Patch([FromODataUri] long key, LongPrimaryKeyType model) { model = CachedData.Single(d => d.ID == key); return(model); }