Let's say I have two MVC controller actions. One is in the context of a popup and one is not (e.g., one is involved in a create or update and one is involved in a delete). Both controller actions make the same preliminary Entity Framework call which throws an error. How am I supposed to know which controller action was involved, and hence whether I should execute cancelChanges on the grid? Since the controller actions are being called by the DataSource Read, Create, Update and Destroy, I would hope to be able to key off that information, not the host of errors that might be thrown by Entity Framework. Maybe I'm missing something and need an example.
↧