32.
public ActionResult Index() {
ViewBag.Message = “Welcome to ASP.NET MVC!”;
return View(“~/Views/Example/Index.cshtml”);
}
Is the return View statement correct?
View Description
When using the tilde syntax, you must supply the file extension of the view because this bypasses the view engine’s internal lookup mechanism for finding Views.