static StringPrimaryKeyTypeController() { CachedData = new StringPrimaryKeyType[] { new StringPrimaryKeyType() { ID = "Test 1".ToString() }, new StringPrimaryKeyType() { ID = "Test 2".ToString() }, new StringPrimaryKeyType() { ID = "Test 3".ToString() } }; }
public StringPrimaryKeyType Patch([FromODataUri]string key, StringPrimaryKeyType model) { model = CachedData.Single(d => d.ID == key); return model; }
static StringPrimaryKeyTypeController() { CachedData = new StringPrimaryKeyType[] { new StringPrimaryKeyType() { ID = "Test 1".ToString() }, new StringPrimaryKeyType() { ID = "Test 2".ToString() }, new StringPrimaryKeyType() { ID = "Test 3".ToString() } }; }
public StringPrimaryKeyType Patch([FromODataUri] string key, StringPrimaryKeyType model) { model = CachedData.Single(d => d.ID == key); return(model); }