I hava a View Name \"Message\" in the Jobs folder of Views. And I want to return that view form an action of different controller, named \"MarketController\"
You have to fill the full address for your Message view ("~/Views/Jobs/Message.cshtml"):
[HttpPost]
public ActionResult Save()
{
TempData["message"] = "Save successfully";
return View("~/Views/Jobs/Message.cshtml");
}
Just use a relative path based on the Views
folder
return View("~/Views/Jobs/Message.cshtml");