Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
DynamoDB DynamoDB VehicleController.cs Get
public async Task<IActionResult> Get(string vin)
Table table = Table.LoadTable(_client, "Vehicles");
Document vehicleDocument = await table.GetItemAsync(vin);
var vehicle = new Vehicle{
Vin = vehicleDocument["VIN"],
Year = vehicleDocument["YearManufactured"],
Make = vehicleDocument["Make"],
Model = vehicleDocument["Model"]
return Ok(vehicle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment