Предупреждающее сообщение журнала:
Код: Выделить всё
The current Document Type home matches a locally declared controller of type "ACC_UMBRACO.Controllers.HomeController".
Custom Controllers for Umbraco routing must implement '"Umbraco.Web.Mvc.IRenderController"' and inherit from '"System.Web.Mvc.ControllerBase"'.
Код: Выделить всё
1
accit@byrom.plc.uk
inline
ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,xhtml,html,htm,php,htaccess
assets/img/login.jpg
false
true
false
HomeController:
Код: Выделить всё
public class HomeController : BaseController
{
private readonly IUmbracoContextFactory _context;
private readonly DictionaryManager _dictionaryManager;
public HomeController(IUmbracoContextFactory context, DictionaryManager dictionaryManager)
{
_context = context;
_dictionaryManager = dictionaryManager;
}
.......
}
public class BaseController : SurfaceController
{
.....
}
Подробнее здесь: https://stackoverflow.com/questions/677 ... ng-in-home
Мобильная версия