in 05-LanguagesAndFrameworks/WebApplication/Controllers/HomeController.cs [58:79]
public ActionResult Create(SampleModel model)
{
// a. Place text caret inside string literal for actionName
// Invoke completion (<shortcut id="Basic Completion">Ctrl+Space</shortcut>) - suggests actions from this controller
if (model == null)
{
// b. <shortcut id="Go to Declaration or Usages">Ctrl+Click</shortcut>on RedirectToAction method
// Navigates to method or controller
return RedirectToAction(actionName: "");
}
// c. Place text caret inside string literal for actionName
// Invoke completion (<shortcut id="Basic Completion">Ctrl+Space</shortcut>) - no suggestions
// Place text caret inside string literal for controllerName
// Invoke completion - suggests controllers
// Place text caret inside string literal for actionName
// Invoke completion - suggests actions for selected controller
return RedirectToAction(actionName: "", controllerName: "");
// d. Navigate to action or controller
// <shortcut id="Go to Declaration or Usages">Ctrl+Click</shortcut> on string literal to navigate
}