I probably also need to set ModelState and ModelMetadata, but it seemed to work with just this as a starting point.