I do not think controllers are making a message. The controllers receive requests (messages) and do some work, extract the data, and then choose which view to display back to the browser.
So, your action methods are usually called from a web browser (link on the page, javascript). That's why I suggest you pass an additional parameter to the action methods, and then based on this value, select the appropriate view for rendering.
public ActionResult AddToCart(int productID, string caller) { //add to cart logic switch (caller) { case "this": { //get data for this view return View("this"); } case "that": { //get data for that view return View("that"); } default: { //get data for default view return View("default"); } } }
I hope that I understand well what the nature of your problem is ...
source share