Getting an error caught in UpdateModel
"Setting the Id property is only supported with .NET 3.5+ during entity deserialization" System.Exception {System.NotSupportedException}
public ActionResult Edit1(Guid id, ActivityResponseConsumerMobile arcm) {
if (!ModelState.IsValid) {
SetupDropDowns();
return View(arcm);
}
ActivityResponseConsumerMobile arcmDb = uow.ActivityResponseConsumerMobiles.Single(a => a.Id == id);
try {
UpdateModel(arcmDb);
}
catch {
var x = ModelState;
return View(arcm);
}
Feels like SO Question: MVC2 throws InvalidOperationException in UpdateModel(), trying to update the id field
but I'm using the object instead of FormCollection. ORM I'm using is LightSpeed.