For windows authentication you need to go and modify the “web.config” file
and set authentication mode to windows.
Then in the controller or on the action you can use the “Authorize” attribute
which specifies which users have access to these controllers and actions. Below
is the code snippet for the same. Now only the users specified in the controller
and action can access the same.
StartController : Controller
// GET: /Start/
public ActionResult Index()
Above is the ASP.NET MVC
interview questions & also see the following video on redirect permanent: -