The newly introduced nameof operator is useful in making my code my "typed".
Instead of
return RedirectToAction("Edit");
we can write
return RedirectToAction(nameof(Edit));
But for to get a controller's name is not that straightforward, because we have a Controller suffix. Just want to know if I want to have a
return RedirectToAction(nameof(Index), controllernameof(Home));
to take the place of
return RedirectToAction("Index", "Home");
how can we implement the controllernameof operator?
 
     
     
     
     
     
     
     
     
     
     
    