In your App_start folder open routeconfig.cs and do this
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces:new []{"nameofyourproject.Controllers"}// add this line ;
);