Skip to content

Instantly share code, notes, and snippets.

@ctolkien
Created March 30, 2017 22:07
Show Gist options
  • Save ctolkien/4c9641dda77410c009c1ee640bce92c3 to your computer and use it in GitHub Desktop.
Save ctolkien/4c9641dda77410c009c1ee640bce92c3 to your computer and use it in GitHub Desktop.
class Car
{
string Name {get; set;}
string Colour {get; set;}
DateTime Manufactured {get; set;}
}
//----------------
var car = myApiClient.Cars.Get(123);
car.Colour = "blue";
myApiClient.Cars.Update(car);
//api endpoint complains here - calls to update cannot include the Manufactured date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment