Is there a recommended way to erronously stop a submit operation? (And return the correct response to the client)
e.g. If inside my service, I need to invalidate an entity (validation error) (And the code to do this is rather complex and best done after attaching the entity, as opposed to using attributes), how would I halt the submit process and immediately return
the ChangeSet (which contains the validation error) to the client?
Another example I can think of is if I discover -prior to saving- that my entity is in delete conflict, how do I terminate the operation and return the result immediately?