title: identify which action method to call when same view is requested from different view in mvc 5
body: <p>I am working on a MVC 5 project and I have a case where I am calling the same action/view from different views and I want to return to the same view from which the request is coming. Ex. Say I have three view A, B, C and A and C both call B at different times. Now I want to return to A or C respectively after the B action is complete. I have to use this B view from multiple actions/views in such a way that when B action is complete it redirect to the respective view which called B initially. I am looking for a generic solution. What would be the best way to do it. it would be very helpful if some example can be given by you helpful guys :)</p>