Changed edit to TryUpdateModel

This proves to be a more reliable method when updating entities.