When I create a new controller in Visual Studio with MVC, it automatically generates the following code:
public class Default1Controller : Controller
{
public ActionResult Index()
{
return View();
}
}
My Default1Controller inherits from Controller, but I work with the BaseController class, and I always need to remember about changing inheritance. Is it possible to modify or create a new template to automatically generate more specific code for my project?
public class Default1Controller : BaseController
{
public ActionResult Index()
{
return View();
}
}
Thank,
source
share