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