Beispiel #1
0
 static GuidPrimaryKeyTypeController()
 {
     CachedData = new GuidPrimaryKeyType[]
     {
         new GuidPrimaryKeyType()
         {
             ID = Guid.NewGuid()
         },
         new GuidPrimaryKeyType()
         {
             ID = Guid.NewGuid()
         },
         new GuidPrimaryKeyType()
         {
             ID = Guid.NewGuid()
         }
     };
 }
Beispiel #2
0
 public GuidPrimaryKeyType Patch([FromODataUri] Guid key, GuidPrimaryKeyType model)
 {
     model = CachedData.Single(d => d.ID == key);
     return(model);
 }